Loading TOC...

XDMP-TEXTNODE

Message Text

Server unable to build program from non-text document

Cause

MarkLogic server is unable to construct a program from the module at the indicated location. Possible causes include:

There is no module at the indicated location.The module was not loaded as a text file.An imported module could not be found.

Response

Verify your module location is consistent with the root configured into your app server.

Make sure you upload modules into the app server as text. Usually, using the .xqy suffix and no type is sufficient.

Ensure your app server and your code are in agreement. For example, if you place your code in the file system, your app server should reference it in the file system, not in a database. If you place your code in a database, ensure your app server references the same database.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.