Setting up Publication

I am trying to setup pulication in CR 2008 report server V1 with Crystal reports. Any my publication returns an error.
I have done the following:
Created a profile and added the required user
Added the following under profile values :
In the Filter expression -> Crystal Reports expression
I have entered CurrentCEUserName to get the current logged in user.
In the publication I have
Selected the report
Entered all the required parameters under Personization
Under filters selected the User ID from the report field dropdown
Select the the created profile from the Enterprise Receipient mapping dropdown
Set the destination to Business objects inbox
When I right click on the pulication and select Run Now it fails. I get the following error in the history.
2010-11-25 15:05:53,912 ERROR [PublishingService:HandlerPool-45] BusinessObjects_PublicationAdminErrorLog_Instance_16222 - [Publication ID # 16222] - Scheduling document job "VFN350_GL_Detail" (ID: 16,228) failed: Error in File ~tmp48c6620e82e520.rpt: Error in formula Record_Selection: '( ' The ) is missing. Details: errorKind Scheduling document 'VFN350_GL_Detail' (ID: 16,228) failed for the following users: vtest (ID: 14495) . These users had the following profile values: {SCO_PRIMARY_ACCOUNTS_PER_USER.USERID} values: CuirrentCEUserName (FBE60502) [1 recipients processed.]
Any help in this is greatly appreciated.

OK sorry  this was the wrong solution.
You have to do the following:
- In the profile you have to add the following CR expression:
=CurrentCEUserName
- In the publication object itself under Personalization you have to select your field
{SCO_PRIMARY_ACCOUNTS_PER_USER.USERID}
and assign it the profile you created.
Add the group or user for whom you created the profile also as recipient in your publication and scedule it.
Regards,
Stratos

Similar Messages

  • Error (possibly login related) when setting up publication

    I am attempting to set up replication for several SQL Server 2005 databases that are used by our equipment.  The equipment is run from a computer with a SQL Server instance 'Cloverleaf'.
    We have a second computer that also has SQL Server 2005 with instance name 'User'.  The computers are connected over our company network, and I can read and write data into the Cloverleaf databases from the User computer.  On the User computer,
    login is by Windows authentication.  To see the Cloverleaf databases from this computer, I have to enter a username and password.
    I have setup the User computer as a distributor for the Cloverleaf server.  Sitting at the User computer, when I try to set up a publication on the Cloverleaf database, I get this error message:
    SQL Server could not connect to the Distributor using the specified password.  Additional information: Connection to the server [USER-PC] failed... linked server... returned "Login timeout expired"
    and "An error has occurred while establishing a connection to the server..." (Microsoft SQL Server, Error: 21670)
    I have also tried to go to the Cloverleaf computer to set up the publication.  However, when I get to the point where I need to connect to the distributor computer, Windows authentication gives a similar message to what is above, and I have no idea
    if SQL Server authentication would work or, if so, what username or password to try.
    Both instances have remote connections enabled.  
    Do I need to setup a new Windows authentication account on the User computer to enable the Cloverleaf computer to connect to it?  If so, how would I go about that?  Or is there something else I should look into to troubleshoot this problem?

    Hi MTPht,
    According to your description, you want to set the User Server as a distributor and create a publication in the Colverleaf Server , the error occurs when you connect to the distributor by using the specified password. We need to verify if the SQL Server
    login account has admin permission when you log in the Colverleaf instance via a username and password, then creat the new publication . We also need to verify if you added Server Colverleaf as publisher in the distributor's publisher list.
    There is a similar issue about error 21670, you can review the following article.
    http://www.sql-questions.com/microsoft/SQL-Server-Replication/32070626/error-21670-sql-server-could-not-connect-to-the-distributor-using----the-specified-password-configure-distribution-wizard.aspx
    There is the steps about configuring transactional replication between two SQL Server 2005 systems, you can review the following article.
    http://www.techrepublic.com/blog/how-do-i/how-do-i-configure-transactional-replication-between-two-sql-server-2005-systems/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Calling and scheduling existing publication by SDK with promt value

    Hi
    Context
    Calling and scheduling existing publication by SDK with different promt values, included document in publication are Webi.
    Issue
    I can call and shedule publication with different promp values, however some promts are multivalue with various value count. (For example there is value 111 in first case and values 222 and 333 in second case).  Problem is i can fill such a many values how i set in publication by GUI (to understant i can change value but i can;t add/delete another value in one promt).
    Here is some example of my code:
    IProperties oInfoDocumentsProp = publication.getProcessingInfo().properties().getProperties("SIPROCESSINFO_PER_DOC");
    IProperties     oInfoDocumentProp = oInfoDocumentsProp.getProperties("1"..."N");
    IProperties     oWebiPrompts     = oInfoDocumentProp.getProperties("SI_WEBI_PROMPTS");
    IProperties     oWebiPrompt     = oWebiPrompts.getProperties("1"... "N");
    //to get Values collection
    IProperties      oWebiPromptValues     = oWebiPrompt.getProperties("SI_VALUES");
    //to get N value
    IProperty      oWebiPromptValue     = oWebiPromptValues.getProperty(1...N);
    //to set prompt value
    oWebiPromptValue.setValue("something")
    _publication.schedule/save.... .
    for now it is good, however when i do this
    oWebiPromptValues. add(x,x,x) or oWebiPromptValues.removeLocal(n) it do almost nothing when i look into publicaiton by GUI.
    Any idea how to change promt values count ?
    Thanks in advance.

    Hi,
    You can use the following code to add prompt values to a webi report :
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
    <%@ page import="com.crystaldecisions.sdk.plugin.CeKind" %>
    <%@ page import="com.businessobjects.sdk.plugin.desktop.webi.*" %>
    <%@ page import="com.crystaldecisions.sdk.properties.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import ="com.businessobjects.rebean.wi.* "%>
    <%@ page import ="com.businessobjects.sdk.ceutils.prompts.* "%>
    <%
    boolean loginSuccessful = false;
    IEnterpriseSession boEnterpriseSession = null;
    String username = "Administrator";
    String password = "";
    String cmsname  = "localhost:6400";
    String authenticationType = "secEnterprise";
    try {
    //Log in.
    boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
    if (boEnterpriseSession == null) {
      out.print("<FONT COLOR=RED><B>Unable to login.</B></FONT>");
    } else {
      loginSuccessful = true;
    } catch (SDKException sdkEx) {
    out.print("<FONT COLOR=RED><B>ERROR ENCOUNTERED</B><BR>" + sdkEx + "</FONT>");
    if (loginSuccessful) {
    IInfoObject boInfoObject = null;
    String docname = "New Web Intelligence Document5";
    //Grab the InfoStore from the httpsession
    IInfoStore boInfoStore = (IInfoStore) boEnterpriseSession.getService("", "InfoStore");
    ReportEngines repEngines = (ReportEngines)boEnterpriseSession.getService("ReportEngines");
    ReportEngine widocRepEngine = (ReportEngine)repEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
    //Query for the report object in the CMS.  See the Developer Reference guide for more information the query language. 
    String query = "SELECT TOP 1 * " +
           "FROM CI_INFOOBJECTS " +
           "WHERE SI_INSTANCE = 0 And SI_Kind = '" + CeKind.WEBI + "' " +
           "AND SI_NAME='" + docname + "'";
    IInfoObjects boInfoObjects = (IInfoObjects) boInfoStore.query(query);
    if (boInfoObjects.size() > 0) {
      // This will schedule the first WebI document in the collection
      IWebi boWebi = (IWebi) boInfoObjects.get(0);
      int ID = boWebi.getID();
      boWebi.setTitle(boWebi.getTitle() + " - Set Prompt Test");
      DocumentInstance wiDoc = widocRepEngine.openDocument(ID);
      Prompts prompts = wiDoc.getPrompts();
                for(int j =0, m = prompts.getCount();j<m; j++)
                   Prompt prompt = prompts.getItem(j);
                   String name = prompt.getName();
                   String str[] = prompt.getPreviousValues();
                   out.println(name);
                   out.println(str[1]);
                   String [] values = {"US","Holland"};
                   prompt.enterValues(values);
                   String s[] = prompt.getCurrentValues();
                   out.println(s[0]);
                   wiDoc.save();
                   out.println("success prompts");
      PromptsUtil.populateWebiPrompts(prompts,boWebi);
      //Retrieve the ISchedulingInfo Interface for the Report object and set the schedule
      //time (right now) and type (run once)
      ISchedulingInfo boSchedulingInfo = boWebi.getSchedulingInfo();
      boSchedulingInfo.setRightNow(true);
      boSchedulingInfo.setType(CeScheduleType.ONCE);
      boWebi.schedule();
      out.println("WebI document scheduled.");
    } else {
      out.println("WebI document not found!");
    boEnterpriseSession.logoff();
    %>
    Please let me know if you need any more details.
    Regards,
    Shreyans Surana
    Edited by: shreyans_7 on Dec 9, 2011 3:39 PM

  • Can you have two separate products appear on Newsstand if they live in the same Enterprise app?

    A client has two sets of publications - a weekly and a monthly.
    We ideally want to build an Enterprise app that houses all their weekly and monthly publications. Both products need to appear in Newsstand.
    Is this possible? If so, how do we partition the app so that the publications are separate? I assume we would need a custom storefront as well.
    Thanks

    Hi,
    If you want to create 2 separate apps on Newsstand then you need to build and manage these separately. This requires you to create 2 separate App IDs and build separate apps using App Builder.
    Remember that folios are always uploaded into a specific application account. This means you'd have to create a separate application account for the other app and only upload the folios you'd like to see in that app.
    Do note that apple will probably give you issues if you offer the exact same content twice, so they'll reject the app. If you do want to differentiate between users only getting the weekly vs monthly issues I'd suggest you use an entitlement server.
    Bart

  • After checkin the timestamp of dInDate is not correct

    Hi,
    I use UCM 10g and have a problem with the metadata field dInDate and other fields that contain the time.
    The scenario is like this
    1. I click on 'New-Check In' in the UCM Administration gui
    2. I enter type, security group, title and other values into the metafields. I also set the Publication Date to '02.02.2011 13:35'.
    3. Now when I take a look at the checked in file in my DB I can see that the publication date has been stored with the value '02.02.2011 12:35' which is one hour ahead of the time I entered.
    4. Taking a look at the info page of the checked in file is also showing '02.02.2011 12:35' as the publication date
    Does anyone have a clue, why the ucm is behaving like this?
    Thanks
    Bodhy

    Not sure if you've found a solution to your particular problem yet but I've got a bug submitted right now that occurred after I installed the latest update bundle. This particular bug only occurs if you've got IndexVaultFile=true in your config.cfg and begins to manifest itself after checking in a new revision of a content item via WebDAV, the issue then affects all items whether they are submitted via WebDAV or otherwise. The times get recorded as UTC times rather than in your local time. I'm still waiting on a fix from Oracle for this particular bug, 11883101.

  • Photos are gone from my iWeb page

    Hello, I have iWeb 3.0.2(489) I hope I am in the correct place. When I first got iWeb, I hadn't figured out how to create a separate iWeb for each of the categories, so I have one page, with several titles on the top, and I can just click on each "title", and get the page I want to view.
    The problem is, on just one of the pages, the photos are all gone. This is just a very recent development. After I select it, I get to the page, and the name is there on top of the page, but I cannot see the other names on top of that page, to select to leave the page , I just kind of click where I think the other names are, and get back to the first page.
    I have MobileMe membership, but MobileMe chat tells me this is not a MobileMe issue, the website is not being published properly. What I don't understand is if all the other pages are Ok, why just this one. All of my software updates are up-to-date.
    I hope someone may be able to offer some help, or suggestions as to why this is happening, which will be greatly appreciated. I realize that I may not be too clear in describing my problem so if you need more, or different information please let me know.
    Thank you!
    CGM

    Those photos have not been uploaded to your MobileMe disk. The only file for that page that's there is the html file for the page. All of the supporting files are missing.
    First, set the publication destination to a folder on your hard drive (bottom left image)
    Click to view full size
    and publish the entire site to it. Drag the index.html file in that folder into your open Safari window. This will open the site locally and you can check those albums to see if the photos are there.
    If the photos are there and the site is complete reset the publication destination to MobileMe (upper right hand image in the screenshot above) and use the *File ➙ Publish Entire Site* menu option to upload the entire site again and check. If that doesn't do it make a small change to those pages, edit a word and then change it back, and publish the entire site again.
    If the above still doesn't work you can manually upload your site by mounting your iDisk on the Desktop
    Click to view full size
    and go to the iDisk/Web/Sites folder. There you will see your site folder and an index.html file. Now drag the site folder you published to your hard drive onto the iDisk to replace the one that's there. That will get your site fully loaded.

  • Webi limitations on SAP BW

    Hi Experts,
    I am working on a project using BO XI 3.1 and SAP BI 7.1.
    We want to use SAP BW Infocubes, BW Queries as data source to WebI reports. We know there are some limitations on the WebI side and all the features won't be availble like relational database on SAP BW sources. I am specifically looking for the following inputs:
    1.  when you set up publications (particularly email ditribution) are there any known limitations (other than one fetch for each reciepient)? can report be distributed with appropiate data being filted as per user's role (Assuming proper roles are setup on BW side and same are imported in BO) ?
    e.g. User A should get the report in email with data for region A only
           User B should get the report in email with data for region B only
    Reason iam asking is, i could find some posts where users have reported some issues with bursting feature.
    2. Can be complex calcution & key figures be done at webi side? I read it in one SAP article that it is recommended to do this in a BEX query? Need more details on the why its not advisable to do it in WebI? Is this because limited fuctions are avaible for olap on the webi side? or just for performance reasons?
    Thanks
    Sushil.

    Hey Sushil,
    1. when you set up publications (particularly email ditribution) are there any known limitations (other than one fetch for each reciepient)? can report be distributed with appropiate data being filted as per user's role (Assuming proper roles are setup on BW side and same are imported in BO) ?
    e.g. User A should get the report in email with data for region A only
    User B should get the report in email with data for region B only
    Reason iam asking is, i could find some posts where users have reported some issues with bursting feature.
    If all the Roles/Authorizations mapped correctly, then BO will work perfectly.
    Can you post what the problems you faced??
    2. Can be complex calcution & key figures be done at webi side? I read it in one SAP article that it is recommended to do this in a BEX query? Need more details on the why its not advisable to do it in WebI? Is this because limited fuctions are avaible for olap on the webi side? or just for performance reasons?
    YEP, because of performance as first concern, Exit(User/Customer/SAP) functionality.
    It is not like that WebI has less functions, It means, we have to do/use many formulas or combination of functions to get exact data.
    Per my experience, Complex conditions I made it in WebI only, worked well.
    Gracias...!!

  • Is it possible to call msync from within an EVB Application?

    Does anyone know how to run mSync from within an embedded visual basic application?
    Some sample code or documentation would be particularly welcome.

    The following is taken from the Windows CE documentation that ships with 9i Lite:
    Table 3-16 ISyncOption Public Properties
    username -> Name of the user.
    password -> User password.
    syncParam -> Synchronization preferences. See Section 3.7.2.4, "COM Interface SyncParam Settings" for more information.
    transportType -> Type of transport to use. Only "HTTP" type is supported currently. The default value is HTTP.
    transportParam Parameters of the transport. See Section 3.7.1.5, "Java Interface TransportParam Parameters" for more information.
    syncParam documentation is (also taken from the same document):
    The syncParam is a string that allows support parameters to be specified to the synchronization session. The string is constructed of name-and-value pairs, for example:
    "name=value;name2=value2;name3=value3, ...;"
    The names are not case sensitive, but the values are. The field names which can be used are listed in Table 3-17.
    Table 3-17 COM Interface SyncParam Settings
    "reset" -> N/A Clear all entries in the environment before applying any remaining settings.
    "security" -> "SSL" "CAST5" Use the appropriate selection to choose either SSL or CAST5 stream encryption.
    "pushonly" -> N/A Use this setting to upload changes from the client to the server only, download is not allowed.This is useful when data transfer is one way, client to server.
    "noapps" -> N/A Do not download any new or updated applications. This is useful when synchronizing over a slow connection or on a slow network.
    "syncDirection" -> "SendOnly" "ReceiveOnly" "SendOnly" is the same as "pushonly". "RecieveOnly" allows no changes to be posted to the server.
    "noNewPubs" -> N/A This setting prevents any new publications created since the last synchronization from being sent, and only synchronizes data from the current publications.
    "tableFlag [Publication.Item]" "enable" "disable" The "enable" setting allows [Publication.Item] to be synchronized, disable prevents synchronization.
    "fullrefresh" -> N/A Forces a complete refresh.
    "clientDBMode" -> "EMBEDDED" "CLIENT" If set to "EMBEDDED", access to the database is by conventional ODBC, if set to "CLIENT" access is by multi-client ODBC.
    Example 1
    The first example enables SSL security and disables application deployment for the current synchronization session:
    "security=SSL;noapps;"

  • Adobe Reader XI won't print PDF's in color

    I recently built 4 new PC's for my office.  They all have Windows 7 64 bit, and are all networked to the same Canon Copy machine.  They all print Office documents just fine, in color or black and white as needed.  And all but one of them print PDF's just fine as well.  However, one of the PC's is only printing in black and white, even when we change the settings to color and even when the preview pane shows the document in color.  Gray scale is not checked.  I was able to get documents to print in color, but I had to change the "objectives" setting from "General" to "Publication".  What I'm wondering is, is there a way to change the settings on this computer so that "General" objectives print in color, or so that the default objective is set to "publication" . Please advise. 

    Thanks to the previous post by KCoons, I figured out how to fix a similar issue.
    MY SITUATION: I was printing thousands of concert flyers to a fairly modern Ricoh printer, and I noticed that even though the source document was B&W, Adobe was printing the greyscale as dots of color, seriously depleting my color toner. I had to play around with the settings to get Acrobat Pro to print it in true B&W, using only black toner.
    Later on, I discovered Acrobat would not print ANYTHING in color, while other programs had no problem with color.
    THE SOLUTION: This is not exactly the same as the one posted above, which is why I am posting this as a possible alternative for users with a similar problem...
    In the PRINT dialog, click on the ADVANCED button to the right of the printer selection field.
    In the ADVANCED PRINT SETUP dialog, in the selection field just above the print image, click on COLOR MANAGEMENT.
    On the right side, under Color Management, for COLOR HANDLING, select "Printer Color Management."
    This solved the problem for me. Now I can print in color again. And it was indeed an ADOBE setting, not a printer setting.

  • Subscriptions and In-App Purchases

    Hello:
    In iTunes Connect, I want to setup an Auto-Renewable Suscription (with paid In-App Purchases) and also I want to setup separate In-App Purchases apart from the subscriptions so the user has to pay for "special" issues that are not included within the subscription he bought on the desired timeframe.. Is it possible?
    I need to confirm this point
    Thanks!

    The key point to understand about subscriptions and special issues is how subscriptions are defined. When users sign up for an iTunes subscription, they are entitled to all content "published" between the Start Date and the End Date. The Publication Date setting in the Folio Producer determines whether subscribers are entitled to content. For example, if I purchase a 6-month subscription to your magazine in August 2013, I'm entitled to all folios in which the Publication Date falls between August 2013 and February 2014 (plus the most recently published folio such as the July 2013 issue).
    If you want subscribers to pay for additional special issues, you need to play with the Publication Date settings of those issues. Either set the Publication Date in the future (such as December 2031) if you want the special issues to appear at the top of the library, or set it to the past (such as December 1992) if you want the special issues to appear at the bottom.
    This applies to iTunes subscription only. If you have direct entitlement set up, you have more control over special issues.

  • Server-Side Wins with Shared Maps

    We are using shared maps/publication items in our solution. Using this approach, the MGP process composes the set of publications items once for each group of users instead of once for each user. This helps a great deal in reducing MGP-compose times.
    What we are looking to implement however is server-side conflict resolution with shared maps. Oracle does not support this by deafult, so we were told write custom conflict resolution for this to work.
    As it stands now, we have written custom DML for the conflict resolution. However, in the apply-phase we are only given the group-id for the current sync user. What we need, however, is the client-id of the current sync user.
    Using the client-id, we can check to see if the client (and not the entire group) has any dirty records in the out-queue. If there are dirty records, then the server wins and the conflict-records are not applied.

    shared items have the same selection criteria for all users (ie: no data subsetting). Therefore the same data is composed and placed in the out queue for each user that is part of the group.
    I assume you are trying to check if there is a copy of the incoming record waiting to go to the the user, so you can compare the data on update. The problems you may have with this are
    1) data being present in the out queue (or not) depends as much on when the last compose ran, as the fact that the data has changed (can you hand on heart guarantee that the compose will have run if the user sends an update within a half an hour of the server being changed.
    2) the same record (because it is shared) may have been downloaded to a number of different clients. What will you do if they all send back updates?
    normally shared items are used for reference data (ie: static), but if you want to use them in this way it may be better to do your conflict tests against the actual underlying data, rather than what is stored in the MGP temporary tables. This will provide more consistent results as it does not rely on the timing of the compose process, and will be consistent for each user transaction
    You know which publication item is being processed. From mobileadmin.C$all_publications you can pick up the schema name, object name and template query. You can then use this to compare the current server data against the incoming data

  • Adobe Content Viewer URL scheme

    Hello,
    Does anybody knows Adobe Content Viewer URL scheme?
    We're working on a "proof of concept" for one of our customers, and we have to show what inter-folio links look like!
    At this time, we use unpublished folios (they're only available in ACV) and would like to link ones to others using Bob Bringhurst advanced linking magic tips.
    But we need ACV url scheme to do it...
    Thanks!

    Hello Bob.
    You're right. We have a Pro DPS account and we can build as many dev apps as we want, of course. That's (unfortunately) not the point. We're working on a huge set of publications for one of our customer (it could count several hundreds of folios in a near future) but we're still in "beta phase". Testing features and deployment abilities is for us a crucial point. We have many points to be checked (interfolio linking is just one of them), and it would have been more comfortable for me to work on the whole stuff in ACV, that is more easyly usable "all over the world" for our customer and his partners (from USA to Singapore, through Europa) than a custom viewer...
    But maybe it's what we'll have to do anyway...

  • Mobile Workbench - Packaging Assistent

    Hello guys,
    I have some problems with the Mobile Workbenchs Packaging Assistant (Oracle 10g) under Windows XP. Everytime when I try to create a "jar" package and try to bundle the sql scripts, I get only an archive with my war file, the web.xml and the PACKWIZ_MADA_RES_TEMP folder. There are no sql scripts bundled in the archive. It seems to be that I did something wrong, but there are also no error messages. The distribution of the jar when published on the Mobile Server works flawless, installation on a client is no problem, but of course synchronizing the olite leaves me with a ORA00942 as there are no table structures created. Creating them manually works fine and after that also syncing is no problem.
    Does anybody now what am I doing wrong - Thanks in advance,
    Sascha

    After several trys and lots of problems with the MDW (Mobile Database Workbench), I have decided to use the API for the publication. Actually Rekounas and his blog pointed me in this direction ;), so thanks a lot for this helpful resource.
    As a reference the blog post:
    http://www.rekounas.org/2008/09/19/creating-publication-items-using-the-oracle-lite-api/
    Now only one question is popping up, is there any "GOOD" documentation out there for the API. I looked into several places (mainly the oracle site) and did found lots of tutorial-like informations, but a simple javadoc was missing...
    For example it would be really nice to know which string values (should not that be an enum or if defined as string static constants of the including classes?) define the refresh mode in the method createPublicationItem. Rekounas blog post includes this useful sife info:
    // refresh mode (F - Fast Refresh, C - Complete Refresh)
    So I already know two of the parameters, but the MDW also defines a third one, which is custom. As the MDW GUI behaves a little weird when saving this, it just resets back to "F" after loading the mpj, I would just guess that the API does not cover this value?
    Second up how do I set a publication item to read only, this should be done in addPublicationItem, but actually I could not even find any docs about that.
    Any help is really appreciated - So thanks in advance,
    Sascha

  • Metadata Cleanup Merge replication

    Hi Experts,
    we are using sql server 2008 R2 SP2 on windows server 2008 r2, 64 bit.
    Merge replication is the topology.
    we have around 15 publications for 2 different databases. some publications require continuous sync and some are once in a day.
    so, the metadata cleanup and subscription expiry was set to to never expire. this setting is adding up lots of records to the three system tables
    msmerge_tombstone
    msmerge_genhistory
    msmerge_contents.
    so Iam doing a manual weekely change of the setting to 5 days (on Friday), and keeping it back to never expire on monday.
    I understand that, I can always keep the setting as 5 days and let it leave, but with any reason if there is no sync, subscriptions will get expired, and will removed.
    so I just want to automate this setting. every friday, it should change to 5 days retention, and then monday, to never expire.
    I even thought about creating a job to execute the stored procedure sp_mergemetadataretentioncleanup,
    instead of chaning these settings. but this is required upto only sql server 2000.
    so please suggest the best approach.
    thanks in advance.
    Cheers, Vinod Mallolu

    Hello experts, thanks a lot for your responses, and apologies for my delayed response(due to planned leave).
    there is a reason behind the question i asked.
    we have few publications which we are maintaining as schema only no data. it means, if there is any table alters, then only the change will flow. no data changes will progress. this is due to resilience across regions at schema level.
    there are few other publications, which are Reference data like country names or currency types.
    If i set the publications metadta cleanup value to 7 days, if there is no data changes happen within that 7 days, replication is marking that publication as inactive, and then deleting through a job.
    If i set all the active data flowing publications with the value as 7, and left other reference data / schemaonly publications as never expire setting, replication will check for the value which is longest, and delete accordingly. in this case, for all other
    publications, the value is 7, and for schema and refdata publications, it is 7. so it will consider zero, and it will never delete old records(please correct me if my understanding is wrong here). eventhough these are multiple publications, contents,genhistory
    and tombstone is common for these publications.
    this is the reason behind this question. it is forcing me to make the setting as never expire. if I put the value as 7, and no data flow within 7 days, those publication will get dropped.
    please let me know if you need more details.
    Hope i gave enough explanation behind this requirement.
    thanks in advance
    Cheers, Vinod Mallolu

  • Setting dynamic recipient for a publication is failing

    I have a publication which has the dynamic recipient set up as a crystal report template. I am trying to change this dynamic recipient template using the below code. However, it does not work-
    string newPublicationQuery = @"SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND = '"
        + InfoStore.CeKind.PUBLICATION + "' AND SI_NAME = '" + newPublicationTitle + "' AND SI_INSTANCE = 0";
    newPublicnInfoObjects = infoStore.Query(newPublicationQuery);
    if (newPublicnInfoObjects != null && newPublicnInfoObjects.Count > 0)
        newPublication = (Publication)newPublicnInfoObjects[1];
        // Get the collection of publication event handlers and add a handler to retrieve dynamic recipients.
        handlers = newPublication.PublicationEventHandlers;
        handler = handlers.GetPublicationEventHandler(2583);
        handlerInfo = handler.Add();
        // Configure the event handler to use a dynamic recipient data provider.
        handlerInfo.PluginClassName = "com.businessobjects.publisher.dynamicrecipients.crystalreports.CRDataProvider";
        // Set the new report template as the dynamic recipient template for the publication
        handlerInfo.DynamicDataDocumentID = newDynRecRepId;
        newPublication.Save();
        infoStore.Commit(newPublicnInfoObjects);
    The code works without any errors. However the dynamic recipient template is still the same old one.
    Can anyone please help? Thanks in advance.

    Thanks for the prompt response Dan.
    I checked the Publication Extension link and didn't see any extensions there. I assumed the event handler is present because the Add() was giving an error (like you say above). And yes, it was because it already had property "SI_ON_READ_RECIPIENTS" in the object.
    I have now done the following changes to the code to see if it helps-
    // Get the collection of publication event handlers and add a handler to retrieve dynamic recipients.
    handlers = newPublication.PublicationEventHandlers;
    handlers.RemovePublicationEventHandler(2583);
    handler = handlers.AddPublicationEventHandler(2583);
    handlerInfo = handler.Add();
    // Configure the event handler to use a dynamic recipient data provider.
    handlerInfo.PluginClassName = "com.businessobjects.publisher.dynamicrecipients.crystalreports.CRDataProvider";
    handlerInfo.DynamicDataDocumentID = newDynRecRepId;
    Above I remove the eventhandler and add it again. However, even this does not work. The publication still has the old dynamic recipient template. Not sure what I am missing here.

Maybe you are looking for

  • I have a error when i connect to sql exprees 2012 with my application

     hi   I have a application , its connected to sql server 2012  express user name  :  sa  and i have a password  in my computer and our company's computer its ok now  i setup sql server 2012 express in a customer's server  i setup my  windows applicat

  • Adding new field in PCUI

    Hi All, Can anybody tell me how to add new field in PCUI screen which is already present in database? As per my understanding,I need to create a Zstructure which will be copy of my standard structure. To this Z structure I will add my new field. Then

  • Can I retreive deleted photos from Ipad?

    My daughter got her new Ipad 2 yesterday and accidently deleted all of her photos which she had just uploaded from her camera.  Her camera flash drive data was also deleted in the process.  Is there any way to get the photos back from the Ipad?

  • HT3986 Whats about the Wifi driver for win7 on MacBook pro with Retina Display?

    Hi guys I have a MacBook pro with retina display. I've tried to install win 7 64 bit with boot camp. Win 7 works but I have now Wifi connection and I can't find any solution I can't use the automatic search function from win7 because I can't  use LAN

  • Export clips separately from multitrack edit bombing Audition 2015 CC

    attaching a screencast. Everything is up to date. Mac Yosemite latest everything. This hasn't happened before. Any help appreciated as I have LOTS to edit/export (and before explaining how I'm going about this wrong, trust me that I've tried many opt