Error in modifying Object Value in Triggers defined on Object Tables
Hi,
While practising with Triggers, the following error was encountered. Could anyone suggest what is the reason and solution for the problem.
An Object Type and an object Table are created.
create or replace
type typPerson is object
(id number,
firstname varchar2(30),
lastname varchar2(30)
create table person_obj_tab of typPerson
/Below is the trigger that modifies data according to some scenario.
Create Or Replace Trigger Trg_B_Iou_POT
before insert or update on person_obj_tab
for each row
begin
:new.object_value:= typperson(15,'Object1','Changed') ;
end;
/Trigger created.
I executed the below insert statement, and I got the following error.
SQL> insert into person_obj_tab values (10,'Object1','From Trigger');
insert into person_obj_tab values (10,'Object1','From Trigger')
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 4153
Session ID: 136 Serial number: 305
SQL> select 1 from dual;
ERROR:
ORA-03114: not connected to ORACLEBut when the trigger code is changed, the above insert statement works,
Create Or Replace Trigger Trg_B_Iou_POT
before insert or update on person_obj_tab
for each row
begin
:new.id:= 15;
:new.firstname := 'Object1' ;
:new.lastname := 'Changed';
end;
SQL> insert into person_obj_tab values (10,'Object','Original');
1 row created.
Question:
1) Trigger of version 1 did not report any error during compilation, but during DML execution, hangs for sometime and gives the above error.
2) Whether direct assignment of Objects of greater size is possible inside triggers built on object Tables?
3) Suppose an object contain multiple attributes (say more than 20), then how to assign them inside a trigger?
Thanks,
Sudher
Hi Sudher,
I have at least one possible reason for this behaviour.
The pseudo-column object_value returns system-generated names for the columns of an object table.
I don't know if you can use it for a complete instance you want to modify.
And I recognized that you don't use the constructor for inserting data in your table.
Why not?
Following suggestion:
create or replace
type typPerson is object
(id number,
firstname varchar2(30),
lastname varchar2(30)
create table person_obj_tab of typPerson
Create Or Replace Trigger Trg_B_Iou_POT
before insert or update on person_obj_tab
for each row
begin
:new.id := 15;
:new.firstname := 'Object1';
:new.lastname := 'Changed';
end;
insert into person_obj_tab values (typperson(10,'Object1','From Trigger'));
select * from person_obj_tab;When you modify the attributes always for themselves, it works.
Triggers in my opinion have the issue to modify or set some choosen columns, but not all.
Similar Messages
-
"Illegals parent number Application-defined or object defined error65171"
HI Experts,
I am trying to import a Chart of Account for a new company and I get this error message "Illegals parent number Application-defined or object defined error65171"
I have seen a couple of post on this topic but I can't pick out the exact thing I'm doing wrong. Can anybody please put me through?
If you can give me an email addres I can send the csv for so you can take a look, it format gets disrupted when I paste it here.
Waiting to Hear from you.
RegardsDear,
For your issue, If you are using non-segmentation account, please kindly check whether your
fatherAccountKey is empty or not, this column is mandatory field for non-segmentation account.
If you are trying to update chart of account with segmentation, please check the note 942939 below:
Symptom
When you try to update chart of account with segmentation, using the
standard template of DTW 2005, you will receive the error message
"Cannot find this object in B1 Application-defined or object - defined
error 65171.
Other terms
DTW; update; chart of account; SAP Business One;
Reason and Prerequisites
Possible reason:
1, Field 'Code' is blank.
In DI API Help file 2005 for OChartofAccount, it says that Field "Code"
is the Mandatory field in SAP Business One when Not Working with
Segmentation.
2, Field 'FormatCode'
The Account Segment Separator '-'.existed in 'FormatCode' field.
Solution
1, Field 'Code' is blank.
For updating existing chart of account with segmentation, This field is
mandatory. You must fill it with the account code of that account you
want to update. You can get the code of each account #_SYS00000000XX#
from OACT table. Otherwise, we cannot update it.
It is not covered in DI API Help file 2005.
2, Field 'FormatCode'
Please delete the Account Segment Separator '-'. For example, change
11005-000-00-11 to 110050000011. System will identify automatically.
Please make sure that the field is a Text format cell. You can change
the format cell by right click the cell.
Wish the information above could solve your issue.
Regards
Apple -
Change value of option button (OLE object) in Microsoft Word file
Hi guys,
I would like to convert a macro from VBA to AppleScript. Unfortunately, I'm the beginner of AppleScript and I don't know how to change value of an option button in Microsoft Word.
For example, I have an option button with 2 options (group name = question413) Yes and No. Now, I would like to open Word file, then change value of option button with group name "question413" to Yes. Below is my code in VBA.
SetOptionButton "question413", "Yes"
Public Sub SetOptionButton(GroupName As String, Value As String)
Dim oShape As Word.InlineShape
For Each oShape In ActiveDocument.InlineShapes
If oShape.OLEFormat.ProgID = "Forms.OptionButton.1" Then
If oShape.OLEFormat.Object.GroupName = GroupName Then
If oShape.OLEFormat.Object.Caption = Trim(Value) Then
oShape.OLEFormat.Object.Value = True
Else
oShape.OLEFormat.Object.Value = False
End If
End If
End If
Next
End Sub
How could I convert them to AppleScript?Any comments would be highly appreciated.
Thanks,Hi
Theirs a pretty in depth tutorial over at MACTECH, which I think will aid your in your code transition
Moving from Microsoft Office VBA to AppleScript:
MacTech's Guide to Making the Transition
http://www.mactech.com/vba-transition-guide/index.html
Budgie
Message was edited by: Budgie
Their is also the possibility you could use the "do Visual Basic" command, not to sure about thta though -
Hello,
I am running Service Manager 2012 with the Exchange Connector 3.0 RTM (Re-release Version). The issue I have is that when an e-mail is processed that is trying to update the status or event log of an incident, the Exchange Connector encounters an error
and will not update the object. The Operations Manager log denotes:
Exchange Connector: Unable to process mail item. Subject="Close Ticket: [IRXXXXX]", Error Message=The key value of an object cannot be changed.
This will happen on a seemingly random selection of Incident work items. I cannot correlate them with a specific template, exchange connector, or incident tier queue that could be causing the issue. I can recreate the way a specific ticket
was created and update it through e-mail without issue, and the next ticket can cause the error to trigger.
I have already opened a Microsoft Support Case using our Software Assurance agreement. After a few months of troubleshooting the issue and trying different fixes, Microsoft support said they were unable to fix the problem and that we would need to
purchase Premier support to go further. At this point I thought I would reach out to the community for ideas.
The setup I have for the Exchange connectors is as follows.
I have three separate Exchange connectors set up to three different mailboxes. One Exchange connector processes external support tickets and applies a specific template. Another processes client support tickets and applies a different template.
And the last Exchange connector processes internal tickets and also processes the updates of tickets created by the other two exchange connectors.
Here are the fixes I've attempted so far:
1. Changed the templates that each Exchange connector applies.
2. Changed the management pack that each template is stored in.
3. Checked my management pack(s) for extended classes by searching for Extension="true" (This was also checked by Microsoft support)
4. Deleted each Exchange connector and recreated each connector
5. Deleted each Exchange connector, deleted the management pack, and reinstalled the management pack and connectors
6. Repeated Step 5, deleted Microsoft.SystemCenter.ExchangeConnector.dll and Microsoft.SystemCenter.ExchangeConnector.resources.dll and then installed the Exchange connector Re-release version 3.0 Published 10/7/2013 (which is supposed to address this
issue)
7. Deleted the HealthServiceState folder and restarted the Management Service
I'm not really sure what to do at this point. I've put many hours into customizing my installation to get it working for my organization so reformatting and starting from scratch would be a nightmare scenario. This environment is in production.
I do have a band-aid in place using Orchestrator. Basically I have a monitor task searching for the error message and when it finds one it searches the mailbox for the offending e-mail and applies either the Resolve or Close status change that is requested
from the user. However, I do not have it working to update the ticket if a comment is applied to the incident. If anyone is in this position and needs to know how to apply this Orchestrator task I am willing to provide my workflow.
I am new to the community and am already impressed with the amount of help and effort there is in this forum. I appreciate in advance any help that is provided and am open to any ideas at this point. I can post more information as needed.
Thank you,
JohnYes that is the whole template. However, I did confirm that this is only happening to incidents where either of two situations triggers a runbook to fire and modify the incident. When I remove the activity from the incident it does clear the
issue. For some background the first Runbook Activity set's the first response date when an incident is resolved if the first response value is null. The second assigns the incident to a user upon creation if the title contains assignto:username;
1.)
<ObjectTemplate ID="Template.d33b5bbcaf3c49b18d8b72bc1e5e1ee4" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Escalated$">False</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/NeedsKnowledgeArticle$">False</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/HasCreatedKnowledgeArticle$">False</Property>
<Object Path="$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' TypeConstraint='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity']$">
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/RunbookId$">4085f0da-ab83-48e5-bbe3-1f3b5fa2dc4a</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/TemplateId$">Template.d33b5bbcaf3c49b18d8b72bc1e5e1ee4</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/IsReadyForAutomation$">True</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/PropertyMapping$"><?xml version="1.0" encoding="utf-16"?>
<ParameterMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ParameterList>
<RunbookParameterItem>
<Name>Get RA Guid</Name>
<Id>344b15effc1a44528e517c5b4227179c</Id>
<Type>String</Type>
<Value>Generic::Id</Value>
<Direction>In</Direction>
<ContextInfo />
</RunbookParameterItem>
</ParameterList>
<RunbookId>4085f0da-ab83-48e5-bbe3-1f3b5fa2dc4a</RunbookId>
</ParameterMapping></Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/ChildId$">1906</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">$MPElement[Name='CustomSystem_WorkItem_Activity_Library!ActivityStatusEnum.Active']$</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Skip$">False</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Title$">Set First Response on Resolve</Property>
</Object>
</ObjectTemplate>
2.)
<ObjectTemplate ID="Template.b311e1f9126e4e19bbbbeb65ddb220ba" TypeID="IncidentManagement!System.WorkItem.Incident.ProjectionType">
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Escalated$">False</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/Status$">$MPElement[Name='CustomSystem_WorkItem_Incident_Library!IncidentStatusEnum.Active']$</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/NeedsKnowledgeArticle$">False</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident']/HasCreatedKnowledgeArticle$">False</Property>
<Object Path="$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' TypeConstraint='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity']$">
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/RunbookId$">ca88b13b-861a-4d39-a3cb-fd912d951e35</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/TemplateId$">Template.b311e1f9126e4e19bbbbeb65ddb220ba</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/IsReadyForAutomation$">True</Property>
<Property Path="$Context/Property[Type='CustomMicrosoft_SystemCenter_Orchestrator!Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity.Base']/PropertyMapping$"><?xml version="1.0" encoding="utf-16"?>
<ParameterMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ParameterList>
<RunbookParameterItem>
<Name>RA Activity GUID</Name>
<Id>5677d117a0294a2c898a695032f26c72</Id>
<Type>String</Type>
<Value>Generic::Id</Value>
<Direction>In</Direction>
<ContextInfo />
</RunbookParameterItem>
</ParameterList>
<RunbookId>ca88b13b-861a-4d39-a3cb-fd912d951e35</RunbookId>
</ParameterMapping></Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/ChildId$">1120</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">$MPElement[Name='CustomSystem_WorkItem_Activity_Library!ActivityStatusEnum.Active']$</Property>
<Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Skip$">False</Property>
<Property Path="$Context/Property[Type='WorkItem!System.WorkItem']/Title$">Execute Orchestrator IR - Autoassign</Property>
</Object>
</ObjectTemplate> -
Error: Error #2078: The name property of a Timeline-placed object cannot be modified.
at flash.display::DisplayObject/set name()
at RonaldTest_fla::MainTimeline/frontWheelLoadComplete()
The code that triggers that bogus error is the following:
var frontWheelLoader:Loader = new Loader();
frontWheelLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, frontWheelLoadComplete);
frontWheelLoader.load(new URLRequest("FrontWheel.png"));
function frontWheelLoadComplete(event:Event):void
var loadedImg:Bitmap = new Bitmap();
loadedImg = event.target.content;
loadedImg.name = "My Loaded Image"; // bugging line
var kontainer:MovieClip = new MovieClip();
kontainer.addChild(loadedImg);
addChild(kontainer);
Any ideas?
Regards,
RonI swear to God, I don't. I have tried many different names, but to no avail ...
var loadMe:Loader = new Loader();
loadMe.contentLoaderInfo.addEventListener(Event.COMPLETE, loadIsNowcomplete);
loadMe.load(new URLRequest("Snowfighter.jpg"));
function loadIsNowcomplete(event:Event):void
var abcdefghijklmnopqrstuvwxyz:Bitmap = new Bitmap();
abcdefghijklmnopqrstuvwxyz = event.target.content;
abcdefghijklmnopqrstuvwxyz.name = "MyLoadedImage"; // bugging line
var kontainer:MovieClip = new MovieClip();
kontainer.addChild(abcdefghijklmnopqrstuvwxyz);
addChild(kontainer);
trace("content: " + kontainer.getChildAt(0).name); // instance8
theTween.addTarget(abcdefghijklmnopqrstuvwxyz, 1); -
I am getting the following error with IE9 and Firefox 26 with application express 3.2:
SCRIPT5007: Unable to get value of the property 'nodeName': object is null or undefined
apex_ns_3_1.js, line 589 character 10
this.dialog.check2 = function (e){
var tPar = html_GetTarget(e);
var lEl = $x('apexir_col_values_drop');
var l_Test = true;
****** while(tPar.nodeName != 'BODY'){
tPar = tPar.parentNode;
if(tPar == lEl){l_Test = false;}
if(l_Test){$x_Remove('apexir_col_values_drop')}
This happens when I click the Gear Icon, then Filter, then I click the dropdown arrow under expressions and pick an expression from the list.
If I set (through IE Developer tools) back to IE8 mode, I don't get the error.Guess no one is using 3.2 any longer or no one else gets this error..... Guess I can edit the JavaScript file to trap the error since it really doesn't seem to cause an issue. Just didn't want to have to go that route.
-
Error when replacing attribute value using LDAPConnection.modify()
I am using Directory SDK 4.1 from netscape. I am trying to replace/modify the value of an attribute for a particular dn. Below is the code:
LDAPConstraints constraints = new LDAPConstraints();
constraints.setReferrals(true);
LDAPAttribute attribute = new LDAPAttribute("passwordexpwarned","1");
LDAPModification mod = new LDAPModification
(LDAPModification.REPLACE , attribute);
getLDAPConnection().modify(dn, mod,constraints);
Automatic Referral Handling is enabled and I want to use to anonymous authentication. When I run the code, I get the following error:
java.lang.ClassCastException: netscape.ldap.LDAPConstraints at netscape.ldap.LDAPConnection.performReferrals(LDAPConnection.java:5057)
at netscape.ldap.LDAPConnection.modify LDAPConnection.java:3121)
at netscape.ldap.LDAPConnection.modify(LDAPConnection.java:2981)
at PasswordExpiration.setPasswordWarnedAttribute(PasswordExpiration.java:305)
Has anyone encountered the same error or could anyone provide me some input on what could be the reason for the error? I would greatly appreciate any help in this matter.
Thanks for your time.you must use LDAPSearchConstraints instead of LDAPConstraints;
the reason is a minor but awkward bug in LDAPJDK; -
Hi:
I want to use XmlParser in my J2ME application, but at the time of defining XmlParser object i a getting error is:"XmlParser cannot be resolved to a type". I am using eclipse for developing application. I have already added KXml.zip in my src folder.
I have imported following things:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.rms.*;
import org.kxml.*;
import org.kxml.parser.*;
and actual error line is:
byte[] xmlByteArray = str.getBytes();
ByteArrayInputStream xmlStream = new ByteArrayInputStream(xmlByteArray);
InputStreamReader xmlReader = new InputStreamReader( xmlStream );
//error line XmlParser parser = new XmlParser( xmlReader );
So, can anybody help me.
Thank YouHi AnupDesai.
I'm using [kXML 2|http://kxml.sourceforge.net/kxml2/] parser, so maybe this could help you. I'm using NetBeans 6.5 and to use it I had to add the JAR file into the "resources" of my project. Then I simply use three imports:
import org.kxml2.io.KXmlParser;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;And use it like this:
KXmlParser parser = new KXmlParser();
InputStreamReader reader = (open your streeam here);
parser.setInput(reader)I hope this helps you!
Marc -
DTW - COA error Illegal parent numberApplication-defined or object-defined
Hi friends,
I am getting error "Illegal parent numberApplication-defined or object-defined errorchartOfAccounts"
while executing DTW - COA.
I am using country India verson and new company is created with user defined COA option.
I have used 100000000000000 to 500000000000000 as parent code for 2nd level accounts as the same is standard drawers for Country India version Chart of Account at level 1.
Can anybody throw some light on this ?
Thanks,
Samir Gandhi
Edited by: Samir Gandhi on Oct 15, 2008 11:51 AMSuda,
Below find the sample in code tag.
Code AccountType AcctCurrency ActiveAccount AllowChangeVatGroup BudgetAccount CashAccount DataExportCode DefaultVatGroup Details ExternalCode FatherAccountKey ForeignName FormatCode LiableForAdvances LockManualTransaction Name ProjectCode Protected RateConversion ReconciledAccount RevaluationCoordinated TaxExemptAccount TaxLiableAccount
Code AccountType AcctCurrency ActiveAccount AllowChangeVatGroup BudgetAccount CashAccount DataExportCode DefaultVatGroup Details ExternalCode FatherAccountKey ForeignName FormatCode LiableForAdvances LockManualTransaction Name ProjectCode Protected RateConversion ReconciledAccount RevaluationCoordinated TaxExemptAccount TaxLiableAccount
tNO tNO tNO 100000000000000 10000000 tNO ASSETS tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10000000 10100000 tNO Fixed Assets tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10100000 10101000 tNO Fixed Assets-Tangible tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101100 tNO Free Hold Land tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101100 10101101 tNO Free Hold Land tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101200 tNO Lease Hold Land tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101200 10101201 tNO Lease Hold Land tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101300 tNO Factory Building tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101300 10101301 tNO Factory Building tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101400 tNO Non-Factory Building tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101400 10101401 tNO Non-Factory Building tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101500 tNO Plant & Machinery tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101500 10101501 tNO Plant & Machinery tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101600 tNO Electric Supply System tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101600 10101601 tNO Electric Supply System tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101700 tNO Vehicles tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101700 10101701 tNO Vehicles tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101800 tNO Furniture & Fittings tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101800 10101801 tNO Furniture & Fittings tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10101000 10101900 tNO Office Equipments tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10101900 10101901 tNO Office Equipments tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10100000 10102000 tNO Fixed Assets-InTangible tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10102000 10102100 tNO "Concessions,Patents,Licences,Trademarks,etc." tNO tNO tNO tNO tNO tNO
at_Other INR tYES tNO tNO 10102100 10102101 tNO Trade Marks tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10102000 10102200 tNO Goodwill tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10100000 10200000 tNO Accumulated Depreciation - Tangible Assets tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10200000 10201100 tNO Free Hold Land tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10200000 10201200 tNO Lease Hold Land tNO tNO tNO tNO tNO tNO
tNO tNO tNO 10200000 10201300 tNO Factory Building tNO tNO tNO tNO tNO tNO
Thanks,
Samir Gandhi -
Run-time error '1004' Application-Defined or object-defined error
Hello friends,
My requirement is to make the cells under Columns Actual, forecast and target (Dimesnion Category) Locked.
I've used various methods like GetOnlyRange but it didnt work.
Now, i've selected all the cells of the sheet, where user can input and made them unlocked. ( from Right-click>FormatCells>Protection tab-->Locked checkbox unchecked)
Then, go to "review" tab, click "Allow Users to edit Ranges",-> Protect Sheet---> ticked "Unlocked Cells"
Then go to WorkBook Options and set a password for the worksheet.
But on expand, I'm facing Run-time error '1004' Application-Defined or object-defined error.
Please help.
Please help.Hi,
I think that is VBA Runtime error, you can fix these errors by downloading in various sites.
http://www.articlesbase.com/data-recovery-articles/vba-runtime-error-1004-application-defined-or-object-defined-error-fix-these-errors--1339060.html
You can try with the above link. I hope this could solve your problem.
Regards,
B.S.RAGHU -
Runtime Error 1101. Application-defined or object-defined error
I am updating VBA code from MS project 2003 plans to 2013, and have come up with the following error message.
Run-time error 1101: Application-defined or object-defined error.
Any help to remedy the situation would be greatly appreciated.
Thanksjfrh,
Normally you shouldn't have to make any changes to VBA written under Project 2003 in order for it to work with later versions however sometimes certain statements may need some "tweaking".
The general description of the run-time error doesn't help us much unless we know a little bit more about your macro. We don't necessarily need to see the whole macro but we do need some context as a starting point. What is the macro supposed to do generally?
Which line of code is highlighted when the error occurs?
John -
Application-defined or Object-defined error
Hello,
When I open Input schedule through open dynamic templates I get the following error message
Application-defined or Object-defined error
Version : BPC 7.0
SP05
Request your guidance.
Thanks,
RamsivaI have experienced much the same problem which I have documented in details here:
Excel Spreadsheet being opened in preview mode by some machines
(Note that I am only surmising the preview mode is the problem as I get the exact same error if I open it on the Development machine in preview mode).
My only workaround at the moment is to open the spreadsheet on the target machine and then replace the vba code and save the file locally (Copy Paste), or apply a digital certificate to the existing VBA code, although the latter only seems to work sometimes.
If I fix the problem on the target machine and then copy, open and close the file on the development machine when the file is sent back to the target machine the problem occurs again.
I have ruled out emailing being the problem as I have copied the file instead of emailing.
The development machine had a number of Office applications and Windows 7 updates applied around the time that the problem occurred, i.e. one day everything is fine, the next day it is impossible to run a new spreadsheet on certain machines.
The highlighted error is also with a .select statement but I isolated the code and put it into a test spreadsheet and that ran okay so it seems to be a more subtle problem.
It doesn't happen on all the machines and I can't see any pattern as to what machines it works on and those it doesn't. They are mostly Windows 7 64bit running Office 2010 and 2013, seems to be about 50/50 split as to working and not working.
I've ensured that the Windows Updates are up to date on all the problem machines.
I think it is the same problem and it helps knowing that someone else has experienced the same thing in order that I don't think I'm going crazy but it's a major problem for me and none of the suggestions so far seem to be close to explaining what is going
on.
If anyone wants samples in order to investigate the problem I am more than happy to send them the spreadsheets. -
Dear Sirs, I try to import budget header and budget line by using DTW, however error message found, "Cannot find this object in B1 application defined, object defined error 65171. Regards, Saw Hua
Hi Javier,
Please check below links.
DTW Error 65171
DTW error 65171
DTW, Unkonwn error 1005!65171
DTW error 65171 - Cannot find this object
DTW error65171
SAP B1 Data Transfer WorkBench : Data too large... | SCN
Hope this help
Regards::::
Atul Chakraborty -
VBA Runtime Error 1004 "Application-defined or Object-defined error"
I have code VBA code written in MS Access 2010 (.mbd file) to write data into an Excel file (.xls file). Below is the code to write data into that excel file. When you run this code, it always throws Error#1004 "Application-defined or Object-defined
error". When you debug the code (F8) or run it (F5), it runs absolutely fine with out any issues. I am still not able to figure it out on what exactly the issue is. This code works fine when executed in MS Access 2007.
Below is thr code that's getting executed and when it fails, the focus is set on the 3rd last line of the code marked in double astriek mark.
Sub PopulateReport(appExcel As Object, testcam)
Dim Site As String, intRec As Integer, i As Integer, cnt As Integer, intRecSet As Integer, cntr As Integer
Dim F1 As String, F2 As String, F3 As String, F4 As String, F5 As String, F6 As String, F7 As String
Dim F8 As String, F9 As String, F10 As String, F11 As String, F12 As String, F13 As String, CAMDate As Date
Close
i = 0
cnt = 0
cntr = 0
Set cnn = CurrentProject.Connection
rec.Open "SELECT * FROM Site", cnn, adOpenStatic, adLockPessimistic
rec.MoveLast
rec.MoveFirst
intRec = rec.RecordCount
Do Until cnt = intRec
rec.MoveLast
rec.MoveFirst
rec.Move cnt
Site = rec(4)
Select Case Site
Case "Fort Worth"
cntr = 0
recset.Open "SELECT * FROM Employee", cnn, adOpenStatic, adLockPessimistic
recset.MoveLast
recset.MoveFirst
intRecSet = recset.RecordCount
appExcel.Application.Goto Reference:="START_FW_CL"
Do Until cntr = intRecSet - 1
appExcel.Selection.EntireRow.Copy
appExcel.Selection.EntireRow.Insert
cntr = cntr + 1
Loop
appExcel.Application.CutCopyMode = False
appExcel.Application.Goto Reference:="START_FW2_CL"
go = appExcel.Application.Range("START_FW2_CL")
cntr = 1
With appExcel.Worksheets("Accts. > Clearing").[START_FW2_CL]
Do Until recset.EOF
**.Offset(cntr, 0) = recset(0)**
.Offset(cntr, 1) = recset(1)
.Offset(cntr, 2) = recset(2)
End SubWhat's wrong about it? It can only copy what you chose to have in the recordset. If you only want some fields or fields in a different order, replace
SELECT * FROM with
SELECT Field1, Field2, etc
CopyFromRecordset is bay far the best method and runs much faster.
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz -
Sybase Error 2601 Attempt to insert duplicate key row in object with unique
RE: Sybase Error 2601 Attempt to insert duplicate key row in object with unique index.
Hi Folks,
I'm getting the following error whilst executing a stored procedure in Sybase.
ERROR: Sybase Error 2601 Attempt to insert duplicate key row in object with unique index.
I understand that duplicate values have been inserted into a column that has a unique constraint.
I just can't figure out how to rectify the problem.
Your help will be greatly appreciated!
Many thanks in advance.If the value I'm trying to insert (using update)
already exists in the unique-value field then the DB
refuses to update the field.
If the value is different it will update.Are you trying to insert or update in SQL (identified by the keyword INSERT or UPDATE respectively)?
Even in case of an UPDATE query, if you are going to update the values of some columns to violate the unique constraints, the update will not succeed and you will get the error message.
or is it?
it tries to create a new row, but can't because there
is another row with the same unique-values.
If this is the case, I am only trying to update and
not create a new item.To put it in simpler words, if you have a set of values defining the uniqueness of a record, you cannot insert another record with the same set of unique values. Similarly, you cannot update an existing record by modifying the set to conflict with another set of unique values which already exist in the database.
Suppose there are two columns A and B defining the uniqueness of the record and you have only two records at the moment like -
A B
========
1 1
2 1
If you try to insert a record with A = 1 and B = 1, it will fail because a record already exists. You cannot violate uniqueness because the database has already been told that there will be only one record for any given combination of A and B.
Similarly, if you try to update the second record from A = 2 to A = 1, the end result would be A =1 and B = 1. There is already a record with that set of values and this will result in a violation of the uniqueness. So, this update will also be disallowed. On the other hand, if you try to update B to some value, say 3, there is no problem in doing so.
For convenience, you can imagine an UPDATE operation to be equivalent to DELETE + INSERT operation, though it doesn't necessarily work the same way internally.
I hope I was clear enough.
Maybe you are looking for
-
NI-DAQmx 7.5 upgrade failure causes MAX seizure?
I have just attempted to upgrade my NI-DAQmx from 7.3 to 7.5 by downloading and running the driver per the install.txt. After an apparently successful install, MAX locks up as it is trying to start. All I get is the splash screen. Any suggestions?
-
How to solve ORA-01843: not a valid month error
i am gettion ORA-01843: not a valid month error how to solve it. and how to find which record causing proble. Thanks in advance.
-
Performance tuning -- Recent Shipments
I need help tuning this query. User input is customer_id(1351) and location('San Antonio - PO Box 795054'). SELECT DISTINCT po_num, shipping_date, bol FROM (SELECT DISTINCT FIRST_VALUE (po_number) OVER (PARTITION BY bol ORDER BY ship_date DESC) po_nu
-
I am looking for any documentation on Jdev2 for total newbies. The only book i can find available is from oracle press and is for Jdev1. The JDev2 docs come with a simple hello world, but it doesnt really teach a whole lot. someone please point me to
-
Noob Question: Where to start.
I do not expect the esteemed members of this forum to hold my hand. I would much rather do things for myself. It is with that in mind that I ask this question. I was wondering if someone could point me in the direction of a basic tutorial for Web Ser