Error message in using the developer project
Hi ,
In using the development project, I several times got the following error message.
What can I do as it occurs each time?
Error message: Invalid universal id
Hi ,
In using the development project, I several times got the following error message.
What can I do as it occurs each time?
Error message: Invalid universal id
You will need to check the result that the doc. is response returns.
You should also try using parent unit and see if that works fine.
You should however do the following:
if doc.hasItem("$Ref") then Set parent = db.GetDocumentByUNID(doc.~$Ref(0)) end if
Or
if doc.hasItem("$Ref") then Set parent = db.GetDocumentByUNID(doc.getItemValue("$Ref")(0)) end if
The error could also be occurring because you haven't written the code in QuerySave, and therefore you should do that.
The invalid UNID may be as a result of trying to get it before the document has been saved.
Regards,
Carl