com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Error Handling in DSS

WSO2 Data Services Server is used for exposing data (decoupled from the infrastructure) as a service, which can be used by external resources to conveniently access the data. When you use WSO2 DSS in an actual production environment, it is possible to encounter situations where the operations you invoke will result in a failed output. For example, you may have a wrong data setup or there may be erroneous operations invoked. In such instances, an error will be logged to indicate that the operation has failed.

 
Listed below are the error codes in WSO2 DSS and the situations in which they may occur.

 

Error CodeDescription
DATABASE_ERRORThis exception is thrown at the point of invoking a request if there are errors occurring while querying the database or while processing the result of a query. For example, a syntax error thrown from the database, a primary key constraint violation, etc.
CONNECTION_UNAVAILABLE_ERRORThis error occurs at the point of creating a data service if the connection to the datasource cannot be established. You can find the instructions for adding datasources to your data service from here.
VALIDATION_ERRORThis error occurs when an input parameter in the request for a query fails the validation defined for that parameter. See the sample on validators to understand how validations work.
INCOMPATIBLE_PARAMETERS_ERRORThis error occurs in the following instances:
  • When a request is invoked, the number of parameters passed in the request should match the number of input parameters defined in the query. Otherwise, there need to be default values specified in the data service (the .dbs file) for the parameters that are not passed in the request. If either of these requirements are not fulfilled, this error will occur at the point of invoking the request. See the sample on setting default parameter values to understand how this works.
  • When a request is invoked, the list of 'with-params' given for the operation defined in your data service should match the input parameters given in the corresponding query definition. If there is a mismatch, this error will occur. Read more about how these parameters are used when defining operations and queries in a data service.
UNKNOWN_ERRORFor all other types of errors.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.