Great observation, and I wish that was the answer. That space is really not in the request. That is where the line wrap occurred when I copied and pasted it from green screen.
-----Original Message-----
From: MAPICS-L [mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of Rad Yates
Sent: Thursday, December 24, 2015 11:36 AM
To: 'MAPICS ERP System Discussion' <mapics-l@xxxxxxxxxxxx>
Subject: Re: [MAPICS-L] SystemLink RPG
I am no expert on this exception, but I did notice that there is a space in the word "warehouse e" in your request. See if removing the space addresses your problem. And Happy Holidays to you!
Have a great day!
Rad Yates, President
Infor XA User Group
-----Original Message-----
From: MAPICS-L [mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of Morrison, Doug
Sent: Thursday, December 24, 2015 11:04 AM
To: MAPICS ERP System Discussion <mapics-l@xxxxxxxxxxxx>
Subject: Re: [MAPICS-L] SystemLink RPG
I have finally been able to get a little time to work on this system-link program. I have a working program based on the examples you provided. I truly appreciate everyone's help. When I run the program it builds the request (I thought correctly) calls the LPI and gets back a response. In the response it list the error <Exception name="java.util.NoSuchElementException">. How do I figure out what this message is really telling me?
Here is the request:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE System-Link SYSTEM "SystemLinkRequest.dtd"> <System-Li
nk> <Login userId="UUUUUUUUUU" password="PPPPPPPPPP" maxIdle="900000"
nk> properties="com.pjx.cas.domain.EnvironmentId="ND" com.pjx.cas.dom
ain.SystemName="T105LZFM.SIMONDS.CC" com.pjx.cas.user.LanguageId=en"/> <Request sessionHandle="*current" workHandle="*new" broker="E JB"
maxIdle="1000"> <Delete name="ITEMBL"
domainClass="com.mapics.epdm.ItemWarehouse"> <DomainEntity> <Key> <Property path="warehous e"> <Value><![CDATA[CS9]]></Value> </Property> <Property path="item"> <Value><![CDATA[24372]]></Value> </Property> </Key> </DomainEn
tity> </Delete> </Request> <Logout sessionHandle="*current"/>
tity> </System-Link>
Here is the response:
<?xml version="1.0" encoding="UTF-8"?><System-Link> <Exception name="java.util.NoSuchElementException
"> <Text> <![CDATA[null]]> </Text> <Message type="error">
<Text> <![CDATA[java.util.NoSuchElementExc
eptionat java.util.StringTokenizer.nextToken(StringTokenizer.java:188)at
com.pjx.xsaa.entry.BaseProcessor.extractEnvironment(Bas
eProcessor.java:1000)at
com.pjx.xsaa.entry.BaseProcessor.handleRequest(BaseProcessor.java:396)at
com.pjx.xsaa.entry.BaseProcesso r.handleRequest(BaseProcessor.java:633)at
com.pjx.xsaa.entry.eScriptLPI.handleRequest(eScriptLPI.java:160)at
com.pjx.xsaa.entry.
eScriptLPI.handleRequest(eScriptLPI.java:78)at
com.pjx.xsaa.entry.eScriptRPGAPI.handleRequest(eScriptRPGAPI.java:74)]]>
</
Text> </Message> </Exception></System-Link>
-----Original Message-----
From: MAPICS-L [mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of Morrison, Doug
Sent: Friday, December 04, 2015 7:16 AM
To: MAPICS ERP System Discussion <mapics-l@xxxxxxxxxxxx>
Subject: Re: [MAPICS-L] SystemLink RPG
Good Morning, and thank you to everyone that has responded. I have used offline load processes in the past. However it may not take care of the new Infor extensions files, I don't know for sure. I do know that it would not take care of any secondary user files added through integrator. I believe that SystemLink is designed to handle files that have been linked through integrator. So I could use offline load and then write programs to handle our user data, but I'd like to start getting familiar with how to work with SystemLink. Which is why I was looking for a simple working sample. I will ultimately also need to delete BOM, routing, pricing, and item revision for this same set of items. Thanks again to everyone for your input and ideas.
-----Original Message-----
From: MAPICS-L [mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of Morrison, Doug
Sent: Thursday, December 03, 2015 3:20 PM
To: MAPICS-L@xxxxxxxxxxxx
Subject: [MAPICS-L] SystemLink RPG
I have about 80,000 items in multiple warehouses that I need to delete. I have a file with the item number and warehouse. I'd like to build an RPG program that could run in batch that would read this file and execute a system link request to delete the item warehouse record.
I am wondering if anyone has this or a similar RPG program they might be willing to share.
Doug
--
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/mapics-l.
--
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/mapics-l.
--
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/mapics-l.
--
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list To post a message email: MAPICS-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/mapics-l.
As an Amazon Associate we earn from qualifying purchases.