Error message in using the developer project

Asked By 30 points N/A Posted on -
qa-featured

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

SHARE
Answered By 0 points N/A #143584

Error message in using the developer project

qa-featured

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:

  • Check the following statement > Set parent = db. GetDocumentByUNID("doc.$Ref")
  • It is invalid, and therefore should be written the right way as follows:

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

 

Login/Register to Answer

Related Questions