나는 maximo에서 XSLT 작업을하고 있습니다.
invbalances에 대한 maximo 필드가있는 외부 필드 이름을 매핑하기위한 XSLT를 작성했습니다. 엔터프라이즈 서비스에서 XSLT 파일 (C:\mif\schema\external\sampleinv4.xsl
) 경로를 제공했습니다."오류 : 파일을 지정하지 않았습니다"엔터프라이즈 서비스에서 XSLT와 maximo 통합 프레임 워크를 통해 XML 파일을 가져 오는 중
나는 오류
BMXAA4214E - An unknown error has occurred.
Please contact your system administrator for assistance.
Gather the logs from the directory and determine where and why the error is thrown.
com.ibm.xtq.xslt.jaxp.HandledRuntimeException:
C:\mif\schema\external\sampleinv4.xsl (The system cannot find the file specified.)
을 얻고 XML 파일을 가져 오려고하지만 파일이 올바른 경로에 지정됩니다. XSLT 파일 :
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:maximoMappings="local" exclude-result-prefixes="xs">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<SyncTESTALCONINVBALANCE xmlns="http://www.ibm.com/maximo">
<TESTALCONINVBALANCESet>
<INVBALANCES>
<SITEID>
<xsl:value-of select="SITEID"/>
</SITEID>
<ITEMNUM>
<xsl:value-of select="ITEMNUM"/>
</ITEMNUM>
<ITEMSETID>
<xsl:value-of select="ITEMSETID"/>
</ITEMSETID>
<LOCATION>
<xsl:value-of select="LOCATION"/>
</LOCATION>
<BINNUM>
<xsl:value-of select="BINNUM"/>
</BINNUM>
<CURBAL>
<xsl:value-of select="ONHANDBAL"/>
</CURBAL>
</INVBALANCES>
</TESTALCONINVBALANCESet>
</SyncTESTALCONINVBALANCE>
</xsl:template>
</xsl:stylesheet>
` XML 파일 오류 메시지에서 XSLT 경로와 파일 이름
<?xml version="1.0" encoding="UTF-8"?>
<SyncTESTALCONINVBALANCE xmlns="http://www.ibm.com/maximo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creationDateTime="2017-03-22T18:37:26+05:30" transLanguage="EN" baseLanguage="EN" messageID="7798510.1490188046810982972" maximoVersion="7 6 20141117-2230 V7600-218" event="0">
<TESTALCONINVBALANCESet>
<INVBALANCES>
<SITEID>FLEET</SITEID>
<ITEMNUM>11R22.5GS-16</ITEMNUM>
<ITEMSETID>SET1</ITEMSETID>
<LOCATION>DALLAS</LOCATION>
<BINNUM />
<ONHANDBAL>16.0</ONHANDBAL>
</INVBALANCES>
</TESTALCONINVBALANCESet>
</SyncTESTALCONINVBALANCE>
코드 서식과 맞춤법이 개선되었고 관련 태그가 두 개 추가되었습니다. – zx485
나는 maximo에 익숙하지 않지만 Windows 경로에 문제가있는 것 같습니다. 경로를'C :/mif/schema/external/sampleinv4.xsl'로 설정하려고 시도 했습니까? 아니면 URI가 필요하다면'file : /// C :/mif/schema/external/sampleinv4.xsl'? –
모두 시도했습니다. 그러나 사용하지 마십시오. – rashma