Platform
Learn
Community
Support
Partner Center
Sign up
or
Log in
logout
Account Settings
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Learn
Training
Documentation
Evaluation Guide
What's New
Community
Home
Forums
Forge
Ideas
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Sign up
or
Log in
Home
Forums
Forge
Ideas
Members
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE
Community
›
Forums
›
Technology & Integration
System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE
New Post
New Post
Fernando Santos
Posted on 2010-02-05
Fernando Santos
Rank: #4457
Posted on 2010-02-05
Hello guys,
I'm consuming BAPI_USER_CREATE1 in Visual Studio 2008 with My SAP Explorer and integrating with Outsystems.
I give the the username, password and lastname that is what is required by the BAPI.
In SAP it works fine!
When i execute in Outsystems it's gives me the folowing error:
System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE
Anyone knows how to resolve it?
Thanks in advance!
Miguel João
Posted on 2010-02-05
Miguel João
Rank: #73
Posted on 2010-02-05
Solution
Hi Fernando
Can you get the full error detail information from the Service Center, and place it here for analysis?
Thanks
Cheers
Miguel João
Solution
Fernando Santos
Posted on 2010-02-05
Fernando Santos
Rank: #4457
Posted on 2010-02-05
Solution
Hi,
I "resolve it" by deleting a none required structure that was sending binary data fields and it corresponding code in C#. Now it's working fine. Maybe the error was because i was not inserting data in that binary data field.
However i leave the error detail:
Id: 81f2a7bb-73bb-4597-b680-e014aea70d4a
Time of Log: 2010-02-05 14:28:51
eSpace Name: GestaoUnificadadeUti
Tenant Name: GestaoUnificadadeUti
User Id: 2
Session Id: g31k5045hafqa255lvvuds55
Server: HYFAST2
Module Name:
Message: [1] System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE
Stack: em ssGestaoUnificadadeUti.RssExtensionccc.MssBapi_User_Create2(HeContext heContext, IRecord inParamSaplogon_Ccc, IRecord inParamAddress, IRecord inParamAlias, IRecord inParamCompany, IRecord inParamDefaults, String inParamEx_Address, String inParamForce_System_Assignment, IRecord inParamLogondata, IRecord inParamName_In, IRecord inParamPassword, IRecord inParamRef_User, String inParamSelf_Register, IRecord inParamSnc, IRecord inParamUclass, String inParamUsername, RecordList inParamAddcomrem_In, RecordList inParamAddfax_In, RecordList inParamAddpag_In, RecordList inParamAddprt_In, RecordList inParamAddrfc_In, RecordList inParamAddrml_In, RecordList inParamAddsmtp_In, RecordList inParamAddssf_In, RecordList inParamAddtel_In, RecordList inParamAddtlx_In, RecordList inParamAddttx_In, RecordList inParamAdduri_In, RecordList inParamAddx400_In, RecordList inParamExtidhead_In, RecordList inParamExtidpart_In, RecordList inParamGroups_In, RecordList inParamParameter_In, RecordList inParamP...tParamParameter_Out, RLBAPIPARAM4RecordList& outParamParameter1_Out, RLBAPIRET6RecordList& outParamReturn_Out)
em ssGestaoUnificadadeUti.Flows.FlowAssets.ScrnAD_List.Preparation(HeContext heContext)
em ssGestaoUnificadadeUti.Flows.FlowAssets.ScrnAD_List.Page_Load(Object sender, EventArgs e)
em System.Web.UI.Control.OnLoad(EventArgs e)
em System.Web.UI.Control.LoadRecursive()
em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
(Continues in f8fe4978-2609-4e96-8bdc-13933394ff4d)
-Env-
eSpaceVer: 244 (Id=704, PubId=820, CompiledWith=5.0.1.8)
RequestUrl: http://localhost/GestaoUnificadadeUti/admin/_Default.aspx
AppDomain: /LM/W3SVC/1/ROOT/GestaoUnificadadeUti/admin-13-129098536701607496
FilePath: C:\...\PS\test\GestaoUnificadadeUti\admin\AD_List.aspx
Locale: pt-PT
DateFormat: yyyy-MM-dd
PID: 372 ('w3wp', Started='05-02-2010 09:18:05', Priv=186Mb, Virt=576Mb)
TID: 6
.NET: 2.0.50727.4927
Cheers,
Fernando Santos
Solution
Miguel João
Posted on 2010-02-06
Miguel João
Rank: #73
Posted on 2010-02-06
Solution
Hi Fernando
It's good to know that you've overcome this problem.
Most likely that structure had a datatype not supported by the our SAP Integration Services. The
SAP Integration in .NET Extensions
technical note includes a list of supported RFC data types, and the correspondent OutSystems datatype mapping.
If you check the SAP BAPI WSDL for that structure attribute's data type, I recommend you compare against that list, to see if any of them is a non-supported data type.
If in the future you'll need to use this structure, depending on the datatype, there may be a solution to support it, if this is the case.
Cheers
Miguel João
Solution
Olga Duarte
mvp_badge
mvp_label
Posted on 2011-09-01
Olga Duarte
mvp_badge
mvp_label
Rank: #2909
Posted on 2011-09-01
Solution
hi Fernando,
i have the same problem.
did you remember which structure you have removed?
Thanks in advance
Best regards,
Olga Santos
Solution
Olga Duarte
mvp_badge
mvp_label
Posted on 2011-11-10
Olga Duarte
mvp_badge
mvp_label
Rank: #2909
Posted on 2011-11-10
Solution
Hi,
I solved this problem by passing something to the fields "Binary Data" (make a httprequest).
Fields with binary datatype of input records/records list to bapis cannot be empty (when using transparency services)
Best Regards,
Olga Santos
Solution
Quick Reply
attachment
Choose File
No file chosen
Submit
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Community Quick Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...