Hi,
I would personally be very careful while modifying objects through a wrapper
API such as the DotNet API...
In ny case this has to do with the fact that you might work in Best Practice
Mode. This means that you can only modify custom objects or objects that has
already been overlaid. Or you work in Base mode whereas Custom objects does
not even exist.
For the object you try to modify you must check the objects
AR_SMOPROP_OVERLAY_PROPERTY. You can then sett your AR_SMOPROP_OVERLAY_GROUP
using the ARSetSessionConfiguration() API call.
Good luck!
Note that admin changes such as these will require the server to recache which
takes time and consume memory. It depends much on the servers cache mode
setting. In any event doing admin changes is not something you should do on a
regular basis...
Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)
Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.
> Hi All,
> I have tried all I can find and I have no other Ideas.
> I am using the C-API Ver: 7.6.4 though DotNet (C#) VS2013.
> I have no issues when it comes to reading the objects through the API using
> any of the get methods . _server.GetForm(Name), pulls the BMC.ARSystem.ARForm
> with no issues
>
> But when I try to Update the form or any other workflow objects for that
> matter after I modify a property on or no modifications to see if it will
> update, I get an Error.
>
> Error (303): Form does not exist on server;Invalid object or object name for
> overlay mode set
> Or
> An unhandled exception of type 'System.AccessViolationException' occurred in
> BMC.arnettoc.dll
>
> I could use some in-site on this issue or possible alternatives.
>
> Example Code Below:
> ///
> /// Update the Diary Field with the action taking place
> ///
> String sUser = "Demo";
> String Name = "MyForm:Test";
> BMC.ARSystem.Server _server = new BMC.ARSystem.Server();
> BMC.ARSystem.ARForm oArForm = _server.GetForm( name );
> BMC.ARSystem.DiaryEntry diaryEntry = new DiaryEntry();
> diaryEntry.Text = "Diary Entry to show up in the Change Log after
> altered via an API.";
> diaryEntry.Time = DateTime.Now;
> diaryEntry.User = sUser;
> oArForm.ChangeDiary.Add( diaryEntry ); //With or without this line it
> errors
> _server.SetForm( oArForm ); // <== Dies Here
>
> Please, Assist if possible.
>
> Respectfully,
> William Abdo
>
> This email message is intended for the use of the person to whom it has been
> sent, and may contain information that is confidential or legally protected.
> If you are not the intended recipient or have received this message in error,
> you are not authorized to copy, distribute, or otherwise use this message or
> its attachments. Please notify the sender immediately by return e-mail and
> permanently delete this message and any attachments. Verio Inc. makes no
> warranty that this email is error or virus free. Thank you.
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"