com.marklogic.client.FailedRequestException: Local message: failed to apply resource at resources/flow: Internal Server Error. Server Message: XDMP-AS: (err:XPTY0004) $func($identifier, $content, $headers, $options) -- Invalid coercion: xs:untypedAtomic("http://datahub/David_Perez_17077388349996699028http://www.w3.org...") as sem:triple . See the MarkLogic server error log for further detail.

GitHub | damonfeldman | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When one item fails in a harmonize batch run, other items in the chunk do not get processed

    GitHub | 6 months ago | damonfeldman
    com.marklogic.client.FailedRequestException: Local message: failed to apply resource at resources/flow: Internal Server Error. Server Message: XDMP-AS: (err:XPTY0004) $func($identifier, $content, $headers, $options) -- Invalid coercion: xs:untypedAtomic("http://datahub/David_Perez_17077388349996699028http://www.w3.org...") as sem:triple . See the MarkLogic server error log for further detail.
  2. 0

    GitHub comment 345#266877076

    GitHub | 3 months ago | damonfeldman
    com.marklogic.client.FailedRequestException: Local message: failed to apply resource at resources/flow: Internal Server Error. Server Message: XDMP-QNAMELEXFORM: fn:QName("", "$type") -- Invalid lexical form for QName . See the MarkLogic server error log for further detail.

    1 unregistered visitors

    Root Cause Analysis

    1. com.marklogic.client.FailedRequestException

      Local message: failed to apply resource at resources/flow: Internal Server Error. Server Message: XDMP-AS: (err:XPTY0004) $func($identifier, $content, $headers, $options) -- Invalid coercion: xs:untypedAtomic("http://datahub/David_Perez_17077388349996699028http://www.w3.org...") as sem:triple . See the MarkLogic server error log for further detail.

      at com.marklogic.client.impl.JerseyServices.checkStatus()
    2. com.marklogic.client
      ResourceServicesImpl.post
      1. com.marklogic.client.impl.JerseyServices.checkStatus(JerseyServices.java:4626)
      2. com.marklogic.client.impl.JerseyServices.postIteratedResourceImpl(JerseyServices.java:4074)
      3. com.marklogic.client.impl.JerseyServices.postIteratedResource(JerseyServices.java:4004)
      4. com.marklogic.client.impl.ResourceServicesImpl.post(ResourceServicesImpl.java:100)
      4 frames
    3. com.marklogic.spring
      FlowWriter.write
      1. com.marklogic.spring.batch.hub.FlowWriter.write(FlowWriter.java:41)
      1 frame
    4. Spring Batch Core
      TaskletStep$ChunkTransactionCallback.doInTransaction
      1. org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)
      2. org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)
      3. org.springframework.batch.core.step.item.SimpleChunkProcessor.write(SimpleChunkProcessor.java:274)
      4. org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)
      5. org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)
      6. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)
      7. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)
      7 frames
    5. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      1 frame
    6. Spring Batch Core
      StepContextRepeatCallback.doInIteration
      1. org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)
      2. org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)
      2 frames
    7. Spring Batch Infrastructure
      RepeatTemplate.iterate
      1. org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)
      2. org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
      3. org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)
      3 frames
    8. Spring Batch Core
      AbstractStep.execute
      1. org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)
      2. org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    10. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      4. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      5. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      7. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      7 frames
    11. com.sun.proxy
      $Proxy93.execute
      1. com.sun.proxy.$Proxy93.execute(Unknown Source)
      1 frame
    12. Spring Batch Core
      SimpleJobLauncher$1.run
      1. org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
      2. org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:392)
      3. org.springframework.batch.core.job.SimpleJob.doExecute(SimpleJob.java:135)
      4. org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)
      5. org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)
      5 frames
    13. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame