• iqbal
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 33
    Questions
  • 10
    Replies
Hi, I am getting below error and am not able to login into apex data loader. INVALID API VERSION SPECIFIED ON URL apex data loader version = 21.0 server host url: https://test.salesforce.com Please let me know how this can be resolved. regards, asif
  • February 09, 2011
  • Like
  • 0

Hi,

Can we create Bar charts in visualforce email templates?

 

Please let me know if this is feasible.

 

Thanks.

 

--Asif

  • July 02, 2010
  • Like
  • 0

Hi,

Can we use Data loader- command line interface to upload csv files.

This is nightly batch process.

 

Regards,

Asif

  • February 15, 2010
  • Like
  • 0

Hi,

I am not able to add any components to a change set.

Am getting this error:
Insufficient Privileges
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.

Click here to return to the previous page.

I am not a system administrator but i have these below permissions for my profile:

“Create and Upload Change Sets”

“Deploy Change Sets”

 

What additional permissions are needed for this?
  • December 30, 2010
  • Like
  • 0

Hi,

I have created a formula field and written a formula which contains 268 characters. But when i save, i am getting this error:

Error: Compiled formula is too big to execute (5,657 characters). Maximum size is 5,000 characters

Problem with salesforce!!!?? How to resolve this please?

Regards,

Asif

  • December 24, 2009
  • Like
  • 0

Hi,

I created a formula field of type number which subtracts two date/time fields and i am getting strange result when two values are subtracted.

(12/24/2009 3:05 PM) - (12/24/2009 12:05 PM) is giving me 0.1250

I basically want to calculate difference between two date/time fields and i expect the difference to be in terms of 'days-months-hours-minutes'.

Has anyone faced this problem? If not with formula field, is there any other way to achieve this.?

 

thanks,

Asif

  • December 24, 2009
  • Like
  • 0

Hi,

I have written an aynchronous class which is called by a trigger. Since it is asynchronous, multiple threads of this class can run at the same time. Is it possible to know what is the number of thread currently being run? is there any system variable which gives this information.

 

Please let me know.

 

 

  • August 25, 2009
  • Like
  • 0

Hi,

We have written a trigger which calls an asynchronous method to perform certain functionality.

In some cases, this asynchronous method might be called 5-10 times at the same time and all the methods run parallely at the same time.

In this situation, can we make sure that the multiple copies of this asynchronous method run sequentially one after the other. Kindly let me know how this can

be done.

 

Thanks,

Asif Iqbal

  • August 20, 2009
  • Like
  • 0
Hi All,
 
I am creating a custom objectwhich has 20 fields in the page layout.One of this is a picklist field with 2 values.My requirement is that if i choose 1 particular picklist value,then some fields in the pagelayout should be made readonly.
This should be done on a realtime basis.
 
Kindly help me to figure out a solution for this.
 
Thanks & Regards,
VN
  • August 05, 2008
  • Like
  • 0
Hi
I am loading contracts.
I am using the salesforce date format of mm/dd/yyyy for loading contract start date and contract end date.
The contract start date is getting populated properly and has no errors but the contract end date is getting populated with errorneous values.
I am using the same format for both start date and end date.
We are not using the ContractTerm field and we have also disabled auto-calculation of contract end date.
Please point out any specific reason for this and corrective actions if any.


Message Edited by iqbal on 01-22-2008 06:29 PM
  • January 22, 2008
  • Like
  • 0
Hi all,
 
I am writing a Java program that will fetch the records from SFDC and insert them to Oracle database tables.My program is fetching records in batches of 250 each and then processing them.But at times i get an error message as:

Error occured; nested exception is:

      java.net.ConnectException: Connection timed out: connect

Error occured:java.net.ConnectException: Connection timed out: connect

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode:

 faultString: java.net.ConnectException: Connection timed out: connect

 faultActor:

 faultNode:

 faultDetail:

      {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect

      at java.net.PlainSocketImpl.socketConnect(Native Method)

      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)

      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)

      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)

      at java.net.Socket.connect(Socket.java:452)

 

 

Please help me to find a solution for this problem

 

 
 
 
Thanks & Regards,
VN
  • January 02, 2008
  • Like
  • 0
Hi
 
How do we create Average Work day in a month...
 
Any pointers on this will be of great help.
 
 
 
 
Thanks
Anandakumar
  • December 28, 2007
  • Like
  • 0
hi all,
 
I am using the querMore call to retrieve data from SFDC.I need to set the batch size as 250.
I am using the following lines for setting the batchsize before querying.
 
-QueryOptions qo = new _QueryOptions();
qo.setBatchsize(new Integer(250));
 
Then my query follows.
 
But even though i have set the batch size as 250,my query result is holding 2000 records.
Please suggest a solution for the same.
 
 
Thanks in advance,
VN
  • December 28, 2007
  • Like
  • 0
Hi
I have Overridden the Close case button with an S-control that prevents the Closure of cases that have Open Activities. This works fine.
 
But now, when I am in the Close Case Page if I push the "Cancel"  button it is not going to the Detail Page (which should not be the case) . And this is because of that S-control.
 
Any pointers on this would be of great help.
 
 
Thanks
Asif
  • December 28, 2007
  • Like
  • 0
Hi All,
I am writing a Java program which will fetch records from SFDC and insert them to Oracle database tables.My query fetches about 20,000 records.But while processing the records i am able to process only the first 2000 records.
I have not set any batchzize(the default batch size being 2000).So to process the remaing records in batches of 2000 ,i have used the queryMore call.But still my program fails to process from the 2001th record onwards.
 
The folowing is the code segment.
try

{

//Get all the Accounts

qr = bindingIM.query("Select Id,Name from Account where RecordTypeId = '012200000004Tsn' or RecordTypeId ='012200000000Cyn' ");

boolean done = false;

if(qr.getSize()>0)

{

System.out.println("Fetched records:"+qr.getSize());

int iCount=0;

while(!done)

{

record_counter=0;

for(record_counter=0;record_counter<qr.getRecords().length;record_counter++)

{

iCount++;

System.out.println("Current record:"+iCount);

Account acct = (Account) qr.getRecords(record_counter);

ID cust_sf_no = null;

cust_sf_no = acct.getId();

String cust_name = acct.getName();

st.addBatch("INSERT INTO SFDC_CHANGE_CUSTOMER(CUST_SF_NO,CUST_NAME) " +

"VALUES('"+cust_sf_no+"','"+cust_name+"') ");

st.executeBatch();

con_id.commit();

}//end of for loop

if (qr.isDone())

{

done = true;

}

else

{

qr = bindingIM.queryMore(qr.getQueryLocator());

}

}//end of while done

 

} //end of if qr.getSize()>0

}//end of try

 

 

Could anyone please help me to solve this issue?....

 

Thanks in advance,

VN

  • December 28, 2007
  • Like
  • 0
Hi,



I have a requirement where i need to override a link. The 'del' link present in Attachements tab in case page layout should be overridden. I have done a similar kind of requirement for Buttons but i dont know how to override a link.My requirement is a user should not be able to delete an attachement. When he tries to delete a message should be displayed. This can be done using s-controls. This 'del' link should be overridden with this s-control. Please help.

Message Edited by iqbal on 12-17-2007 05:05 PM
  • December 17, 2007
  • Like
  • 0

Hi ,

 

I have a requirement where I need to change an existing date format(yyyy-mm-ddThh:mm:ss) into (dd-mm-yyyy hh:mm). I used the format() of the SimpleDateFormat class but iam not getting the result. Could anyone please help me for the same?

 



Message Edited by iqbal on 12-11-2007 04:54 PM
  • December 11, 2007
  • Like
  • 0
Hi,
 
 
I have a requirement,where i have to open a web page from an Scontrol.I also need to pass some parameters like CaseNumber to my web page.
 
Can anyone provide some guidance on this.
 
Thanks in advance,
VN
  • December 06, 2007
  • Like
  • 0
hi all
i am trying to create contacts in sandbox using apex api.(using java code) the code works fine until it inserts 4680 contacts.
but later it throws a remote exception
the error occurs at this statement: saveResults = binding.create(sObjects)
the same java code works fine if i use another sandbox.
following is the error:


nested exception is:

      java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character


please suggest any solution to this.
thanks in advance.

regards,
Aasif

  • December 03, 2007
  • Like
  • 0
hi
 i am trying to create contacts in sandbox using apex api.(using java code) the code works fine until it inserts 4680 contacts.
but later it gives this error
 the error happens at this statement: saveResults = binding.create(sObjects)
 the same java code works fine if i use another sandbox.
following is the error:

 java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81) at org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289) at org.apache.axis.encoding.ser.SimpleSerializer.serialize(SimpleSerializer.java:104) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) - Exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) {http://xml.apache.org/axis/}hostname:IN-W-Infos08227 java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) Caused by: java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) ... 19 more - Exception: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81) at org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289) at org.apache.axis.encoding.ser.SimpleSerializer.serialize(SimpleSerializer.java:104) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229) at org.apache.axis.Message.getContentLength(Message.java:510) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422)

please help in this
  • December 03, 2007
  • Like
  • 0

Hi,

Can we create Bar charts in visualforce email templates?

 

Please let me know if this is feasible.

 

Thanks.

 

--Asif

  • July 02, 2010
  • Like
  • 0

Hi,

I am not able to add any components to a change set.

Am getting this error:
Insufficient Privileges
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.

Click here to return to the previous page.

I am not a system administrator but i have these below permissions for my profile:

“Create and Upload Change Sets”

“Deploy Change Sets”

 

What additional permissions are needed for this?
  • December 30, 2010
  • Like
  • 0

Hi,

I created a formula field of type number which subtracts two date/time fields and i am getting strange result when two values are subtracted.

(12/24/2009 3:05 PM) - (12/24/2009 12:05 PM) is giving me 0.1250

I basically want to calculate difference between two date/time fields and i expect the difference to be in terms of 'days-months-hours-minutes'.

Has anyone faced this problem? If not with formula field, is there any other way to achieve this.?

 

thanks,

Asif

  • December 24, 2009
  • Like
  • 0

Can I deploy all page layout I created in one custom object I created so that it will be viewable to all user? Or only one page layout that can be set per profile user?

I have problem deploying the page layout so that it will be viewable to all user. Please help..

Hi,

We have written a trigger which calls an asynchronous method to perform certain functionality.

In some cases, this asynchronous method might be called 5-10 times at the same time and all the methods run parallely at the same time.

In this situation, can we make sure that the multiple copies of this asynchronous method run sequentially one after the other. Kindly let me know how this can

be done.

 

Thanks,

Asif Iqbal

  • August 20, 2009
  • Like
  • 0
Hi All,
I am writing a Java program which will fetch records from SFDC and insert them to Oracle database tables.My query fetches about 20,000 records.But while processing the records i am able to process only the first 2000 records.
I have not set any batchzize(the default batch size being 2000).So to process the remaing records in batches of 2000 ,i have used the queryMore call.But still my program fails to process from the 2001th record onwards.
 
The folowing is the code segment.
try

{

//Get all the Accounts

qr = bindingIM.query("Select Id,Name from Account where RecordTypeId = '012200000004Tsn' or RecordTypeId ='012200000000Cyn' ");

boolean done = false;

if(qr.getSize()>0)

{

System.out.println("Fetched records:"+qr.getSize());

int iCount=0;

while(!done)

{

record_counter=0;

for(record_counter=0;record_counter<qr.getRecords().length;record_counter++)

{

iCount++;

System.out.println("Current record:"+iCount);

Account acct = (Account) qr.getRecords(record_counter);

ID cust_sf_no = null;

cust_sf_no = acct.getId();

String cust_name = acct.getName();

st.addBatch("INSERT INTO SFDC_CHANGE_CUSTOMER(CUST_SF_NO,CUST_NAME) " +

"VALUES('"+cust_sf_no+"','"+cust_name+"') ");

st.executeBatch();

con_id.commit();

}//end of for loop

if (qr.isDone())

{

done = true;

}

else

{

qr = bindingIM.queryMore(qr.getQueryLocator());

}

}//end of while done

 

} //end of if qr.getSize()>0

}//end of try

 

 

Could anyone please help me to solve this issue?....

 

Thanks in advance,

VN

  • December 28, 2007
  • Like
  • 0
hi all
i am trying to create contacts in sandbox using apex api.(using java code) the code works fine until it inserts 4680 contacts.
but later it throws a remote exception
the error occurs at this statement: saveResults = binding.create(sObjects)
the same java code works fine if i use another sandbox.
following is the error:


nested exception is:

      java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character


please suggest any solution to this.
thanks in advance.

regards,
Aasif

  • December 03, 2007
  • Like
  • 0
hi
 i am trying to create contacts in sandbox using apex api.(using java code) the code works fine until it inserts 4680 contacts.
but later it gives this error
 the error happens at this statement: saveResults = binding.create(sObjects)
 the same java code works fine if i use another sandbox.
following is the error:

 java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81) at org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289) at org.apache.axis.encoding.ser.SimpleSerializer.serialize(SimpleSerializer.java:104) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) - Exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) {http://xml.apache.org/axis/}hostname:IN-W-Infos08227 java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554) at org.apache.axis.Message.getContentType(Message.java:486) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422) Caused by: java.io.IOException: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) ... 19 more - Exception: java.lang.IllegalArgumentException: The char '0x1b' after 'Bego' is not a valid XML character. at org.apache.axis.components.encoding.UTF8Encoder.writeEncoded(UTF8Encoder.java:81) at org.apache.axis.encoding.SerializationContext.writeSafeString(SerializationContext.java:1289) at org.apache.axis.encoding.ser.SimpleSerializer.serialize(SimpleSerializer.java:104) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:734) at org.apache.axis.encoding.ser.ArraySerializer.serialize(ArraySerializer.java:414) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980) at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:801) at org.apache.axis.message.RPCParam.serialize(RPCParam.java:208) at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478) at org.apache.axis.message.MessageElement.output(MessageElement.java:1208) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269) at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530) at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229) at org.apache.axis.Message.getContentLength(Message.java:510) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at comHC.sforce.soap.enterprise.SoapBindingStub.create(SoapBindingStub.java:2673) at contact.ContactInitialLoadHC.Contact_InitialLoadHC(ContactInitialLoadHC.java:311) at contact.ContactInitialLoadHC.Contact_InitialLoad(ContactInitialLoadHC.java:77) at contact.ContactInitialLoadHC.main(ContactInitialLoadHC.java:422)

please help in this
  • December 03, 2007
  • Like
  • 0
Hi All,
 
I have a requirement in which On clicking the New button on the Account page,it should display a New page with 2 fields prepopulated.
Of these,one is a custom field and the other is a standard field.I am able to prepopulate the standard field.But when i try to populate the custom field in the same manner,i get error.
 
 
window.parent.location.href="{!URLFOR($Action.Account.New, null,  [retURL="/001/o",zsalesorg__c="PTAA",acc2 = "vin"],true)}";
 
 
Could anyone help me to solve this?
 
Thanks in advance,
VN
  • November 26, 2007
  • Like
  • 0