Data Merge not picking up all data fields

Hi,
I've been having a problem, posted here: http://forums.adobe.com/thread/1217090
Essentially, I have been using the script 'CSV2Tables' to prepopulate simple 2 column tables with information drawn from a CSV data source.
The tables consist of a title, and a block of information about that specific subject. Many of the blocks of information I am importing also contain data tags (<<DataTag>>)
The plan is to use CSV2Tables to populate the tables, then change data source and run a normal ID Data Merge to replace all of the <<tags>> within the tables with information from a second CSV data source.
The problem is, CSV2Tables is importing the data and prepopulating the tables just fine, but the data tags that are found within each body of text are being picked up as plain text (as Peter Spier has pointed out, they are being drawn from a plain text stream rather than being dragged from the Mail Merge panel) so when I try to run the ID Mail Merge, none of the fields are found within my document.
My question is - is there a method, or script available out there that can essentially do a Find/Change within a document, and replace plain text that appears like this <<PlainText>> with a Data Tag that is recognised by ID, which will allow me to run a Data Merge?
I have been told to check out some of the commercial plugins available out there, but registering and setting up demo's would require me to contact our IT provider for each, and that would be an exhaustive process.
Any help is much appreciated.

Hi,
is modyfied
Array.prototype.find = function (string) {
    for (var s = 0; s < this.length; s++)
        if (this[s] == string) return s;
        return -1;
var mFrames, mFile, mDoc, mFields, mFieldsNames, mStory,
     mPlainTxt, mNameToCompare, mField_ID;
// edit this with proper .csv path
mFile = File(Folder.myDocuments + "/" + "Merge.csv");
mDoc = app.activeDocument;
mDoc.dataMergeProperties.selectDataSource(mFile);
mFields = mDoc.dataMergeProperties.dataMergeFields;
mFieldsNames = mFields.everyItem().fieldName;
mFrames = mDoc.textFrames.everyItem().getElements();
for (var i = 0; i < mFrames.length; i ++) {
    if (!mFrames[i].name.match(/TF\d*$/) ) continue;
    // script assumes a targered text boxes are named like: TF1, TF2...
     // (TF plus any integer) or just TF (no integer)
    // - they could have the same name
    // any other name exludes frame from this loop
    mStory = mFrames[i].parentStory;
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "<<.+?>>";
    mPlainTxt = mStory.findGrep(true);
    for (var k = 0; k < mPlainTxt.length; k++) {
        mNameToCompare = mPlainTxt[k].contents.slice(2,-2);
        mField_ID = mFieldsNames.find(mNameToCompare);
        if (mField_ID > -1) {
              mField = mFields[mField_ID];
            mDoc.dataMergeTextPlaceholders.add (
                mStory,
                mPlainTxt[k].insertionPoints[0],
                mField
        mPlainTxt[k].remove();
script assumes a targered text boxes are named like:
TF1, TF2... (TF plus any integer) or just TF (no integer) -
- they could have the same name.
Jarek

Similar Messages

  • JDBC sender channel running but not picking up the data from sp

    Hi,
    One of the jdbc sender channels in production is running at its schedule time but it is not picking up the data from the sql side, we have checked with the sp side and they are saying that sp is running fine. No changes have been done in its configuration. Last message coming in RWB  is Retry interval started but that is of 1 day and its already been 3 days. I tried by starting and stopping the channel but of no use. The channel was re activated but that also didn't help.
    Please help, what can be the reason for the same.
    thanks.

    Hi,
    The JDBCadapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender JDBC adapters as well. I would recommend to do a check in all sender JDBC communication channels)
    You can see/delete the locks in Visual admin.
    Go to Server>Services->Locking adapter and click refresh
    The entries for JDBC adapter ( with name $XIDBAD.JDBC2XI) should be deleted by selecting those particilar entries and click delete selected locks.
    If you have more than one node, then same should be done in all server nodes.
    The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
    But, the lock may be created again which potentailly stops all your database interfaces. Hence i would suggest to use Disconnect From Database After processing of Each messages in Advanced tab in the sender JDBC adapter.
    Hope this solves your issue.
    PS: The same bahaviour would expected for all file adapter as well

  • Data is not picking in Purchase Order

    Hi All,
    I have loaded the data into the interface table .Now i have to transfer it to the base table through concurrent program.But data is not picking .Please Help me out.
    The name of the concurrent program is
    import standard po & one message is displayed is
    o/p file generated with 0 bytes.

    Hi Saplearner's
    Is there any body who will focus on this issue
    I have maintained all this accordingly, but the problem lies over here
    Pb00-- 100 
    ra01---  2   discount
    net--  98
    jexc(16%)--15.68 ( MANUAL EXCISE)
    net amount including tax-- 113.68
    freight(2%)-- 1.96
    Actual-- 115.68.
    BASB-- 115.68  ( It should be 100)
    In short i have given summary above, now let me explain
    when i am giving 100 as gross price,discount-2 and if i dont give JEXC, then BASB is coming 100 that is correct.
    when i am giving 100 as gross price, discount 2 and if i give JEXC  , then BASB is  picking as 115.68.
    Problem is here when we give  JEXC  manual excise.
    Rgds
    Kamat.
    Edited by: shrikant kamat on Feb 16, 2009 2:09 AM
    Edited by: shrikant kamat on Feb 16, 2009 2:09 AM
    Edited by: shrikant kamat on Feb 16, 2009 2:10 AM
    Edited by: shrikant kamat on Feb 16, 2009 11:57 PM

  • Can I config timesten not to hold all data in memory?

    In our production environment we use a server with 32GB memory to run Timesten, but developer machine only have 2GB memory. Now we are going to fix some issue that require duplicate the production data to Developer machine, can we have config timesten not to hold all data in memory so that it is possible to duplicate the production data to Developer machine? Is timesten support something like cache table as hsql?
    http://hsqldb.sourceforge.net/web/hsqlFAQ.html#BIGRESULTS

    TimesTen is an in-memory database. All the data that is managed directly by TimesTen must be 'in memory' and the machine hosting the datastore must have enough physical memory or system performance will be severely degraded.
    The only way to have a combined in-memory and on-disk solution is to introduce a backend Oracle database (10g or 11g) and use TimesTen cache connect. Of course, this then becomes a very different configuration and depending on what 'issue' it is that you need to investigate and fix the change to a Cache Connect configuration may hinder that investigation.
    Chris

  • PO Doc Date is not Greater than MIGO Date.

    Dear All,
    I ahve Done PO with doc date 02.02.2009 & i create MIGO as 25.01.2009 System is accepting this document.
    so i want restriction of this procedure.
    PO date is not greater than MIGO date.
    Thanks
    Shital

    hi
    for ur problem just set message no ME039 as error message
    go to SPRO>MM>Purchasing>Environment Data>Define Attributes of System Messages
    here make message ME -039 as error
    regards
    KI

  • PC Suite 7 – Data transfer not possible. Check dat...

    When I try to use (open, update, modify etc.) the “contacts list” in PC suite version 7.0.7, I always have the following error: “Data transfer not possible. Check data connection”. Instead the SMS list works fine. My phone is Nokia 6267.
    Anyone has a solution?
    Best Regards
    Bix123

    Hi everyone,
    I had the same problem for months with many PC Suite versions & both XP service packs until I tried a phone setting just for testing and everything worked out fine In my phone (3110c) under Settings / Connectivity / Data Transfer / PC Sync, I filled in a random User name & Password and voila!!! All contacts copied just fine!!! I hope this works with other models with the same menu as well. It looks that it's not a PC Suite problem after all (at least for me that is).
    Hope I helped you guys
    Spiros
    Greece

  • End date should not less than Start date, else CLEAR it

    Hello
    I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
    Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
    http://forums.adobe.com/message/1909551
    and i did my FormCalc coding under EXIT event of END DATE field as below,
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
    endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
    endif
    // End date should not less than Start date, else CLEAR it - End
    I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
    PLs. let me kow how can i achieve my requirement? I am anewbie,
    Thank you

    If you use the exit event, you will probably have to have the same code on both the start and end date fields since they have a dependancy on each other. Maybe better to try the validate event of the end date so that if either field is changed the event gets fired. You can try the following for validate event
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = CON_START_DATE.rawValue
    endDate = $.rawValue
    if ( HasValue(endDate) ) then
        if (stDate > endDate) then
            xfa.host.messageBox("End date is lower than Start date! End date is cleared")
            $.rawValue = null
        endif
    endif
    1
    // End date should not less than Start date, else CLEAR it - End

  • Contract End date should not less than Start date, else CLEAR it

    Hello
    I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
    Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
    http://forums.adobe.com/message/1909551
    and i did my FormCalc coding under EXIT event of END DATE field as below,
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
    endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
    endif
    // End date should not less than Start date, else CLEAR it - End
    I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
    PLs. let me kow how can i achieve my requirement? I am anewbie,
    Thank you

    http://forums.adobe.com/message/4264933#4264933

  • "The SPListItem being updated was not retrieved with all taxonomy fields." Exception while updating a taxaonomy field

    Hi All,
    I'm getting this exception "The SPListItem being updated was not retrieved with all taxonomy fields." when i try to programatically update a taxonomy field of a list item. Can any1 pls tell me why this exception occurs ???

    Recently hit this myself, as well.  Turns out it's a central admin setting that throttles the lookup return count, and Taxonomy fields are just lookups under the hood.
    Go into Central Administration, Manage Web Applications, select your web application, and then in the ribbon choose the dropdown under General Settings select Resource Throttling.  Find the setting for "List View Lookup Threshold" and raise
    it from the default 8 (can go up to 1000, but 20 is likely fine depending how many lookup fields you're pulling back in your SPListItem).

  • Revaluation not picking up all documents

    Hi
    The revaluation program is not picking up all foreign currency GRIR documents.  I've checked and the exchange rates are different and the items are open, but when we run the revaluation program it skips certain documents.  Has anyone ever come accross this issue?
    Thanks

    I think that you posted this on the wrong forum.  This is the asset accounting forum.  Revaluation usually refers to the revaluation of assets.  I think that you are asking about currency revaluations.  You shold post your question in the correct forum.

  • Reply all not picking up all email addresses

    On a mail list email when I hit "Reply All" Mail app does not pick up all email addresses when composing a response to a non subscribed user.  This also happens when using web mail in Safari.  No problems on iMac.

    last step on the process is a factory restore through itunes to see if its a software glitch, if that doesnt solve it, you iphone may need service
    iTunes: Restoring iOS software

  • Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    What folder structure?
    If you're referring to how Aperture stores the originals in a managed library then the answer is you can't change it.
    If having the originals stored in a specific file structure is important to you you will need to switch to a referenced original setup.

  • Data Merge: Layout Adjusting to Varying # of Fields?

    Greetings all,
    A friend is producing a PDF report for different countries to show what diseases exist in each country. I think a data merge might work, but she will want to list information only about diseases that are present in a given country. Right now, there are blank / null cells in the spreadsheet for non-applicable diseases. Essentially, we’d like to collapse the display of any missing data fields (and its accompanying table) so that only relevant data is shown. So if we had three diseases total (A, B, C) and only two were present in a country (A & C), we’d like to produce:
    Table. Disease A
    Info, data in table
    Table. Disease C
    Info, data in table
    Is this possible using InDesign’s data merge (or another feature)? Perhaps using content placement options? Any other ideas? I think the goal is to have different tables for each disease, though I’m not sure if that will affect the process. Many thanks in advance for the help; my InDesign experience is very limited!
    Sincerely,
    Eric

    Awesome, thanks Eugene! I'll do some reading on table looks and styles. It sounds like we may be able to suppress tables if all their fields are left blank (or something similar)? If another question comes up, I'll post a mock-up of the final product.
    Many thanks for the prompt reply.
    Eric

  • Data Merge Not Displaying Images

    This is my first go using Data Merge and so far so good. I have my master template set up and have successfully merged data from my csv file into a multi-page data merge document.
    For reference I am using ID CC and Windows 7
    My problem is data merging images.
    My csv is set up using '@image as a header, and I am using a relative link in the below field (/image-folder/image.jpg)
    ID recognises the image header and shows 'image' in the data source, but when I assign it to my frame nothing is displayed. I have the fitting set to fit the frame.
    My path seems to be correct, as if I change it, my image does not appear in the layer palette.
    I am not seeing the image when I hit 'preview' in the data merge palette, or when I perform the data merge itself.
    Really in need of some help!

    Try creating a new blank document containing a single graphics frame. Drag the 'image' entry from the Data Merge panel on to the frame. It should now show <<image>> within the frame (see screenshot). See if data merge works now.
    If not, another thing to check is the separators in the file path in your csv file. To get the correct path, place a test image then go to the flyout menu in the Links panel and select Copy Info > Copy Platform Style Path.

  • Data Merge for addresses, wont remove blank fields

    Sometimes it works, sometimes it doesnt.  Today it worked for a file, came back to it late with nothing unchanged and it wasnt working...
    Im working with addresses for data merge and everyhting works fine but with the fields (like Address 2, Address 3, etc...) that are unused, I have it set to "Remove blank lines for empty fields" in the options but it will not work.  Why doesnt this seem to work?

    It didn't work in CS2.
    I was told that it was initially broken in CS3, but later fixed (I cannot confirm as I skipped that version).
    It doesn't work in CS4.
    So, apparently Adobe managed to break a feature that did work, but haven't fixed it again.
    -mt

Maybe you are looking for

  • Constraint based on existing values for a column in the table

    I have a table as follows create table MS_FAV_ACCT NICKNAME VARCHAR2(50) not null, ACCOUNT VARCHAR2(6) not null, SUB_ACCOUNT VARCHAR2(3) not null, DETAIL VARCHAR2(4) not null, ICID VARCHAR2(3) not null, SEGMENT VARCHAR2(2) not null, PRIMARY_ACCT VARC

  • Tax in FOC PO

    Hello all   How to handle taxes in FOC Purchase orders? Thanks and regards, Shyam

  • Viewing tif files using EasyDMS

    I have installed EasyDMS 6.0 SP16 non-unicode. When I double click on a tiff image , the image does not appear. If I "edit" the file the tif image is displayed and the little lock Icon appears in the EasyDMS window.Then if I double click on the image

  • Linking a page as a browser window from a drop-down menu item

    I have tried to link from a drop-down menu item to link to a small browser window instead of a full page.  I tried using the "behaviors" but I got both the regular page and the browser window.  Is there a way to make it just the browser window. Thank

  • Database vault 10.2.3.0 fails

    Hi I m trying to install database vault 10.2.3.0 on EBS R12 database (10g -10.2.3.0) . DB vault oui fails with message The installer has not detected any Oracle 10.2.0.2.0 Enterprise Edition database in the system. Its required that you must have at