Skip to Content
0
Jan 18, 2019 at 08:54 AM

Issue with empty context in useOneAsMany SAP PI function

520 Views Last edit Jan 18, 2019 at 10:10 AM 2 rev

Hello.

I had no problems with even complex graphical mappings but now I faced one.

I have to create a target "u_user" element for each record. So I use function "useOneAsMany".

Everything works fine if every user has at least one role. But if there is a user without roles, function fails.

It says that there are different number of contexts in first and second queue. But in fact there are 3 context in each of these. Even though the second context in second queue is empty.

All queues are displayed on the screenshot.

Looks like a bug. Is there a fix or any idea why this happens?

Best regards,

Andrey

<?xml version="1.0" encoding="UTF-8"?>
<ns0:UserRoleByCodeResponse xmlns:ns0="urn:pgk:po:PA:SM:Core:User">
   <ResponseHeader>
      <QueryId>21</QueryId>
   </ResponseHeader>
   <UserCodesWithRoles>
      <UserCodeWithRoles>
         <UserCode>USER1</UserCode>
         <Roles>
            <Role>
               <LogicalSystemCode>CRPCLNT400</LogicalSystemCode>
               <RoleCode>Z001</RoleCode>
               <ValidityStartDate>2019-01-18</ValidityStartDate>
               <ValidityEndDate>9999-12-31</ValidityEndDate>
            </Role>
         </Roles>
      </UserCodeWithRoles>
      <UserCodeWithRoles>
         <UserCode>USER2</UserCode>
         <Roles/>
      </UserCodeWithRoles>
      <UserCodeWithRoles>
         <UserCode>USER3</UserCode>
         <Roles>
            <Role>
               <LogicalSystemCode>S4PCLNT400</LogicalSystemCode>
               <RoleCode>Z002</RoleCode>
               <ValidityStartDate>2019-01-18</ValidityStartDate>
               <ValidityEndDate>9999-12-31</ValidityEndDate>
            </Role>
            <Role>
               <LogicalSystemCode>BWPCLNT400</LogicalSystemCode>
               <RoleCode>Z003</RoleCode>
               <ValidityStartDate>2019-01-18</ValidityStartDate>
               <ValidityEndDate>9999-12-31</ValidityEndDate>
            </Role>
            <Role>
               <LogicalSystemCode>EMPCLNT400</LogicalSystemCode>
               <RoleCode>Z004</RoleCode>
               <ValidityStartDate>2019-01-18</ValidityStartDate>
               <ValidityEndDate>9999-12-31</ValidityEndDate>
            </Role>
         </Roles>
      </UserCodeWithRoles>
   </UserCodesWithRoles>
</ns0:UserRoleByCodeResponse>

Attachments