cancel
Showing results for 
Search instead for 
Did you mean: 

Copy webi report or object from folder to another fails

Former Member
0 Kudos

We had .NET SDK Code that was working in 3.1 but seem to be running into few issues with some methods in 4.1 .

One example was copying a report or an object from one folder to another . It throws an error : File Repository Server Error

Below is a code snippet and also attached the whole code.

While debugging the code fails at red.

                    if (sourceObject.Kind == "Webi")
  query = "Select SI_ID,SI_CUID,SI_NAME,SI_DESCRIPTION,SI_UNIVERSE,SI_FILES FROM CI_INFOOBJECTS WHERE SI_ID = " + sourceObject.ID.ToString();
                      
                    else
                     query = "Select * FROM CI_INFOOBJECTS WHERE SI_ID = " + sourceObject.ID.ToString();

                    InfoObjects boInfoObjectsToCopy = GetInfoStore(infoObj).Query(query);

foreach (CIRTInfoObject destinationObject in Destination)
                            {
                                InfoObject infoObject = boInfoObjectsToCopy[1];
                  InfoObject infoObjectCopy = boInfoObjectsToCopy.Copy(infoObject, CeCopyObject.ceCopyNewObjectNewFilesKeepFileName);

                                infoObjectCopy.ParentID = destinationObject.ID;
                                GetInfoStore(infoObj).Commit(boInfoObjectsToCopy);
                                response.IsSuccessfull = true;
                            }

I'm attaching the code. Any thoughts appreciated.


Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

Hi Ravi


With BI Platform 4.1 you mush use the RESTful Web Services as most of the .NET APIs have been deprecated.  Please see the forum here:

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter