WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADO DAO
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Error 1261 using SetInfo Method


Question:

I am getting error 1261 when I used objuser.setinfo() to update Active Directory from the cache with OLE/COM implementation.
sAdsipath= dsFindPath("LDAP://capitol/DC=Capitol,DC=local", "sAMAccountName=H2232")
objUser=Objectopen(sAdsipath)

; clear department property
objUser.Put("Department", "")

; update Active Directory from the cache
objUser.SetInfo() ; *************  SetInfo() fails with 1261 error

ObjectClose(objUser)

Answer:

Problem:
1261 Ole Exception Error on SetInfo() line is caused by attempting to call the Put() method with a null string. This causes the SetInfo() method to choke.

Resolution:
Use " " (notice the use of a space between the quotes) instead of "" in the Put() statement.


Article ID:   W16567
File Created: 2005:02:18:12:21:30
Last Updated: 2005:02:18:12:21:30